]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/miri_unleashed/box.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / consts / miri_unleashed / box.stderr
1 error[E0080]: could not evaluate static initializer
2 --> $DIR/box.rs:8:11
3 |
4 LL | &mut *(Box::new(0))
5 | ^^^^^^^^^^^^^ calling non-const function `Box::<i32>::new`
6
7 warning: skipping const checks
8 |
9 help: skipping check that does not even have a feature gate
10 --> $DIR/box.rs:8:11
11 |
12 LL | &mut *(Box::new(0))
13 | ^^^^^^^^^^^^^
14 help: skipping check for `const_mut_refs` feature
15 --> $DIR/box.rs:8:5
16 |
17 LL | &mut *(Box::new(0))
18 | ^^^^^^^^^^^^^^^^^^^
19 help: skipping check that does not even have a feature gate
20 --> $DIR/box.rs:8:5
21 |
22 LL | &mut *(Box::new(0))
23 | ^^^^^^^^^^^^^^^^^^^
24
25 error: aborting due to previous error; 1 warning emitted
26
27 For more information about this error, try `rustc --explain E0080`.