]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/miri_unleashed/box.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / box.stderr
1 error[E0080]: could not evaluate static initializer
2 --> $DIR/box.rs:10:11
3 |
4 LL | &mut *(box 0)
5 | ^^^^^^^ "heap allocations via `box` keyword" needs an rfc before being allowed inside constants
6
7 warning: skipping const checks
8 |
9 help: skipping check that does not even have a feature gate
10 --> $DIR/box.rs:10:11
11 |
12 LL | &mut *(box 0)
13 | ^^^^^^^
14 help: skipping check for `const_mut_refs` feature
15 --> $DIR/box.rs:10:16
16 |
17 LL | &mut *(box 0)
18 | ^
19 help: skipping check for `const_mut_refs` feature
20 --> $DIR/box.rs:10:5
21 |
22 LL | &mut *(box 0)
23 | ^^^^^^^^^^^^^
24 help: skipping check that does not even have a feature gate
25 --> $DIR/box.rs:10:5
26 |
27 LL | &mut *(box 0)
28 | ^^^^^^^^^^^^^
29
30 error: aborting due to previous error; 1 warning emitted
31
32 For more information about this error, try `rustc --explain E0080`.