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-03-30 13:26:48 -05:00
|
|
|
| inside `VAL` at $DIR/abi-mismatch.rs:13:17
|
2020-01-19 11:53:25 -06:00
|
|
|
...
|
|
|
|
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
|
|
|
|
|