rust/tests/compile-fail/check_arg_abi.rs
2021-01-29 21:16:17 +01:00

10 lines
207 B
Rust

fn main() {
extern "Rust" {
fn malloc(size: usize) -> *mut std::ffi::c_void;
}
unsafe {
let _ = malloc(0); //~ ERROR calling a function with ABI C using caller ABI Rust
};
}