rust/tests/compile-fail/check_arg_count_too_few_args.rs
2020-11-10 16:51:07 +01:00

12 lines
239 B
Rust

#![feature(core_intrinsics)]
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
};
}