blob: 2ab2bf95448a4787bb6457965e947eb3f57799b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
}
|