mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-19 23:40:48 +00:00
8 lines
223 B
Rust
8 lines
223 B
Rust
// Regression test for issue #4935
|
|
|
|
fn foo(a: usize) {}
|
|
//~^ NOTE defined here
|
|
fn main() { foo(5, 6) }
|
|
//~^ ERROR function takes 1 argument but 2 arguments were supplied
|
|
//~| NOTE unexpected argument #2 of type `{integer}`
|