fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
631 B25 linesraw
1error[E0061]: this function takes 2 arguments but 1 argument was supplied
2  --> $DIR/E0061.rs:6:5
3   |
4LL | fn f(a: u16, b: &str) {}
5   | --------------------- defined here
6...
7LL |     f(0);
8   |     ^ - supplied 1 argument
9   |     |
10   |     expected 2 arguments
11
12error[E0061]: this function takes 1 argument but 0 arguments were supplied
13  --> $DIR/E0061.rs:10:5
14   |
15LL | fn f2(a: u16) {}
16   | ------------- defined here
17...
18LL |     f2();
19   |     ^^-- supplied 0 arguments
20   |     |
21   |     expected 1 argument
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0061`.