]>
Commit | Line | Data |
---|---|---|
f9f354fc | 1 | error[E0080]: could not evaluate static initializer |
2b03887a | 2 | --> $DIR/non_const_fn.rs:7:16 |
e74abb32 | 3 | | |
f9f354fc XL |
4 | LL | static C: () = foo(); |
5 | | ^^^^^ calling non-const function `foo` | |
e74abb32 | 6 | |
f9f354fc | 7 | warning: skipping const checks |
dfeec247 | 8 | | |
f9f354fc | 9 | help: skipping check that does not even have a feature gate |
2b03887a | 10 | --> $DIR/non_const_fn.rs:7:16 |
e74abb32 | 11 | | |
f9f354fc XL |
12 | LL | static C: () = foo(); |
13 | | ^^^^^ | |
e74abb32 | 14 | |
f9f354fc | 15 | error: aborting due to previous error; 1 warning emitted |
e74abb32 XL |
16 | |
17 | For more information about this error, try `rustc --explain E0080`. |