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
|
|
|
|
|
2020-04-19 05:32:21 -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
|
|
|
|
|
2020-04-19 05:32:21 -05:00
|
|
|
LL | static C: () = foo();
|
2020-05-03 07:23:08 -05:00
|
|
|
| ^^^^^
|
2019-11-22 14:26:09 -06:00
|
|
|
|
2020-04-19 05:32:21 -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`.
|