rust/tests/ui/consts/miri_unleashed/non_const_fn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
489 B
Plaintext
Raw Normal View History

2020-05-03 07:23:08 -05:00
error[E0080]: could not evaluate static initializer
2022-09-21 06:05:20 -05:00
--> $DIR/non_const_fn.rs:7:16
2019-10-19 06:13:31 -05:00
|
LL | static C: () = foo();
2020-05-03 07:23:08 -05:00
| ^^^^^ calling non-const function `foo`
2019-10-19 06:13:31 -05:00
2020-05-03 07:23:08 -05:00
warning: skipping const checks
|
help: skipping check that does not even have a feature gate
2022-09-21 06:05:20 -05:00
--> $DIR/non_const_fn.rs:7:16
2019-10-19 08:52:08 -05:00
|
LL | static C: () = foo();
2020-05-03 07:23:08 -05:00
| ^^^^^
error: aborting due to previous error; 1 warning emitted
2019-10-19 06:13:31 -05:00
For more information about this error, try `rustc --explain E0080`.