1 error: any use of this value will cause an error
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 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
9 = help: this code performed an operation that depends on the underlying bytes representing a pointer
10 = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
11 = note: `#[deny(const_err)]` on by default
13 error: could not evaluate constant pattern
14 --> $DIR/ref_to_int_match.rs:7:14
19 error: could not evaluate constant pattern
20 --> $DIR/ref_to_int_match.rs:7:14
25 error: aborting due to 3 previous errors
27 Future incompatibility report: Future breakage diagnostic:
28 error: any use of this value will cause an error
29 --> $DIR/ref_to_int_match.rs:25:27
31 LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
32 | -------------- ^^^^^^^^^^^^^^^^ unable to turn pointer into raw bytes
34 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
35 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
36 = help: this code performed an operation that depends on the underlying bytes representing a pointer
37 = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
38 = note: `#[deny(const_err)]` on by default