1 error: any use of this value will cause an error
2 --> $DIR/const_raw_ptr_ops2.rs:9:26
4 LL | const Z2: i32 = unsafe { *(42 as *const i32) };
5 | -------------------------^^^^^^^^^^^^^^^^^^^---
7 | unable to turn bytes into a pointer
9 = note: `#[deny(const_err)]` on by default
10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
13 error: any use of this value will cause an error
14 --> $DIR/const_raw_ptr_ops2.rs:11:26
16 LL | const Z3: i32 = unsafe { *(44 as *const i32) };
17 | -------------------------^^^^^^^^^^^^^^^^^^^---
19 | unable to turn bytes into a pointer
21 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
24 error: aborting due to 2 previous errors