rust/tests/fail/function_calls/check_arg_abi.rs
2022-06-01 10:53:38 -04: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
};
}