1 warning: skipping const checks
2 --> $DIR/mutable_const2.rs:15:38
4 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
7 error: internal compiler error: mutable allocation in constant
8 --> $DIR/mutable_const2.rs:15:1
10 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:356:17
14 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
16 error: internal compiler error: unexpected panic
18 note: the compiler unexpectedly panicked. this is a bug.
20 note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
22 note: rustc VERSION running on TARGET
24 note: compiler flags: FLAGS