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