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