]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/mutable_const2.stderr
0d7fb845a40eeffb1cba2bc8193a1c8455e27d92
[rust.git] / src / test / ui / consts / miri_unleashed / mutable_const2.stderr
1 warning: skipping const checks
2   --> $DIR/mutable_const2.rs:15:38
3    |
4 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
5    |                                      ^^^^^^^^^^^^^^^^^^^^
6
7 error: internal compiler error: mutable allocation in constant
8   --> $DIR/mutable_const2.rs:15:1
9    |
10 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
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
15
16 error: internal compiler error: unexpected panic
17
18 note: the compiler unexpectedly panicked. this is a bug.
19
20 note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
21
22 note: rustc VERSION running on TARGET
23
24 note: compiler flags: FLAGS
25