mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00
12 lines
286 B
Rust
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
|
||
|
}
|