]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0057.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0057.stderr
1 error[E0057]: this function takes 1 argument but 0 arguments were supplied
2   --> $DIR/E0057.rs:3:13
3    |
4 LL |     let a = f();
5    |             ^-- supplied 0 arguments
6    |             |
7    |             expected 1 argument
8
9 error[E0057]: this function takes 1 argument but 2 arguments were supplied
10   --> $DIR/E0057.rs:5:13
11    |
12 LL |     let c = f(2, 3);
13    |             ^ -  - supplied 2 arguments
14    |             |
15    |             expected 1 argument
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0057`.