fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unsupported untyped pointer in constant 2 --> $DIR/raw_mutable_const.rs:5:1 3 | 4LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _; 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: memory only reachable via raw pointers is not supported 8 9warning: skipping const checks 10 | 11help: skipping check that does not even have a feature gate 12 --> $DIR/raw_mutable_const.rs:5:38 13 | 14LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _; 15 | ^^^^^^^^^^^^^^^^^^^^ 16 17error: aborting due to previous error; 1 warning emitted 18