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