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