rust/tests/ui/fn/param-mismatch-foreign.rs

12 lines
286 B
Rust

extern "C" {
fn foo(x: i32, y: u32, z: i32);
//~^ NOTE function defined here
}
fn main() {
foo(1i32, 2i32);
//~^ ERROR this function takes 3 arguments but 2 arguments were supplied
//~| NOTE argument #2 of type `u32` is missing
//~| HELP provide the argument
}