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