rust/tests/compile-fail/check_arg_count_too_few_args.rs
2021-01-16 18:27:10 +01:00

10 lines
209 B
Rust

fn main() {
extern "C" {
fn malloc() -> *mut std::ffi::c_void;
}
unsafe {
let _ = malloc(); //~ ERROR Undefined Behavior: incorrect number of arguments: got 0, expected 1
};
}