2020-04-19 05:32:21 -05:00
|
|
|
error[E0080]: could not evaluate static initializer
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/abi-mismatch.rs:9:5
|
2020-01-19 11:53:25 -06:00
|
|
|
|
|
|
|
|
LL | my_fn();
|
|
|
|
| ^^^^^^^
|
|
|
|
| |
|
2021-12-01 20:37:23 -06:00
|
|
|
| calling a function with calling convention C using calling convention Rust
|
2022-09-21 06:05:20 -05:00
|
|
|
| inside `call_rust_fn` at $DIR/abi-mismatch.rs:9:5
|
2020-01-19 11:53:25 -06:00
|
|
|
...
|
2020-04-19 05:32:21 -05:00
|
|
|
LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
|
2022-09-21 06:05:20 -05:00
|
|
|
| --------------------------------------------------------------------- inside `VAL` at $DIR/abi-mismatch.rs:15:18
|
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/abi-mismatch.rs:9:5
|
2020-05-03 07:23:08 -05:00
|
|
|
|
|
|
|
|
LL | my_fn();
|
|
|
|
| ^^^^^^^
|
2020-01-19 11:53:25 -06:00
|
|
|
|
2020-05-03 07:23:08 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2020-01-19 11:53:25 -06:00
|
|
|
|
2020-04-19 05:32:21 -05:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|