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