fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1warning: skipping const checks 2 --> $DIR/abi-mismatch.rs:9:5 3 | 4LL | my_fn(); 5 | ^^^^^^^ 6 7warning: skipping const checks 8 --> $DIR/abi-mismatch.rs:13:39 9 | 10LL | const VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) }); 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: any use of this value will cause an error 14 --> $DIR/abi-mismatch.rs:9:5 15 | 16LL | my_fn(); 17 | ^^^^^^^ 18 | | 19 | tried to call a function with ABI C using caller ABI Rust 20 | inside call to `call_rust_fn` at $DIR/abi-mismatch.rs:13:17 21... 22LL | const VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) }); 23 | -------------------------------------------------------------------------------------- 24 | 25 = note: `#[deny(const_err)]` on by default 26 27error: aborting due to previous error 28