]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0061.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0061.stderr
1 error[E0061]: this function takes 2 arguments but 1 argument was supplied
2   --> $DIR/E0061.rs:6:5
3    |
4 LL |     f(0);
5    |     ^ - supplied 1 argument
6    |     |
7    |     expected 2 arguments
8    |
9 note: function defined here
10   --> $DIR/E0061.rs:1:4
11    |
12 LL | fn f(a: u16, b: &str) {}
13    |    ^ ------  -------
14
15 error[E0061]: this function takes 1 argument but 0 arguments were supplied
16   --> $DIR/E0061.rs:10:5
17    |
18 LL |     f2();
19    |     ^^-- supplied 0 arguments
20    |     |
21    |     expected 1 argument
22    |
23 note: function defined here
24   --> $DIR/E0061.rs:3:4
25    |
26 LL | fn f2(a: u16) {}
27    |    ^^ ------
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0061`.