1 error[E0080]: could not evaluate static initializer
2 --> $DIR/abi-mismatch.rs:10:5
7 | calling a function with calling convention C using calling convention Rust
8 | inside `call_rust_fn` at $DIR/abi-mismatch.rs:10:5
10 LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
11 | --------------------------------------------------------------------- inside `VAL` at $DIR/abi-mismatch.rs:16:18
13 warning: skipping const checks
15 help: skipping check for `const_fn_fn_ptr_basics` feature
16 --> $DIR/abi-mismatch.rs:9:23
18 LL | const fn call_rust_fn(my_fn: extern "Rust" fn()) {
20 help: skipping check for `const_fn_fn_ptr_basics` feature
21 --> $DIR/abi-mismatch.rs:10:5
25 help: skipping check that does not even have a feature gate
26 --> $DIR/abi-mismatch.rs:10:5
31 error: aborting due to previous error; 1 warning emitted
33 For more information about this error, try `rustc --explain E0080`.