1 warning: skipping const checks
2 --> $DIR/mutable_const.rs:10:38
4 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
7 error: any use of this value will cause an error
8 --> $DIR/mutable_const.rs:16:9
10 LL | / const MUTATING_BEHIND_RAW: () = {
11 LL | | // Test that `MUTABLE_BEHIND_RAW` is actually immutable, by doing this at const time.
13 LL | | *MUTABLE_BEHIND_RAW = 99
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^ tried to modify constant memory
19 note: lint level defined here
20 --> $DIR/mutable_const.rs:5:9
22 LL | #![deny(const_err)]
25 error: aborting due to previous error