1 error[E0080]: evaluation of constant value failed
2 --> $DIR/ref_to_int_match.rs:25:27
4 LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
5 | ^^^^^^^^^^^^^^^^ unable to turn pointer into raw bytes
7 = help: this code performed an operation that depends on the underlying bytes representing a pointer
8 = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
10 error: could not evaluate constant pattern
11 --> $DIR/ref_to_int_match.rs:7:14
16 error: could not evaluate constant pattern
17 --> $DIR/ref_to_int_match.rs:7:14
22 error: aborting due to 3 previous errors
24 For more information about this error, try `rustc --explain E0080`.