]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/remove-extra-argument.stderr
Rollup merge of #98653 - TaKO8Ki:add-regression-test-for-79494, r=Mark-Simulacrum
[rust.git] / src / test / 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`.