]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/miri_unleashed/non_const_fn.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / miri_unleashed / non_const_fn.stderr
1 error[E0080]: could not evaluate static initializer
2 --> $DIR/non_const_fn.rs:7:16
3 |
4 LL | static C: () = foo();
5 | ^^^^^ calling non-const function `foo`
6
7 warning: skipping const checks
8 |
9 help: skipping check that does not even have a feature gate
10 --> $DIR/non_const_fn.rs:7:16
11 |
12 LL | static C: () = foo();
13 | ^^^^^
14
15 error: aborting due to previous error; 1 warning emitted
16
17 For more information about this error, try `rustc --explain E0080`.