2020-01-19 11:53:25 -06:00
|
|
|
warning: skipping const checks
|
|
|
|
--> $DIR/abi-mismatch.rs:9:5
|
|
|
|
|
|
|
|
|
LL | my_fn();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
warning: skipping const checks
|
|
|
|
--> $DIR/abi-mismatch.rs:13:39
|
|
|
|
|
|
|
|
|
LL | const VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: any use of this value will cause an error
|
|
|
|
--> $DIR/abi-mismatch.rs:9:5
|
|
|
|
|
|
|
|
|
LL | my_fn();
|
|
|
|
| ^^^^^^^
|
|
|
|
| |
|
2020-03-08 13:44:09 -05:00
|
|
|
| calling a function with ABI C using caller ABI Rust
|
2020-01-19 11:53:25 -06:00
|
|
|
| inside call to `call_rust_fn` at $DIR/abi-mismatch.rs:13:17
|
|
|
|
...
|
|
|
|
LL | const VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
|
|
|
|
| --------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
= note: `#[deny(const_err)]` on by default
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|