]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/remove-extra-argument.stderr
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / remove-extra-argument.stderr
1 error[E0061]: this function takes 1 argument but 2 arguments were supplied
2   --> $DIR/remove-extra-argument.rs:6:5
3    |
4 LL |     l(vec![], vec![])
5    |     ^         ------ argument of type `Vec<_>` unexpected
6    |
7 note: function defined here
8   --> $DIR/remove-extra-argument.rs:3:4
9    |
10 LL | fn l(_a: Vec<u8>) {}
11    |    ^ -----------
12 help: remove the extra argument
13    |
14 LL |     l(vec![])
15    |      ~~~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0061`.