fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
415 B14 linesraw
1error[E0061]: this function takes 1 argument but 2 arguments were supplied
2  --> $DIR/issue-4935.rs:5:13
3   |
4LL | fn foo(a: usize) {}
5   | ---------------- defined here
6LL |
7LL | fn main() { foo(5, 6) }
8   |             ^^^ -  - supplied 2 arguments
9   |             |
10   |             expected 1 argument
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0061`.