]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/wrong_argument_ice-2.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / tuple / wrong_argument_ice-2.stderr
1 error[E0061]: this function takes 1 argument but 2 arguments were supplied
2   --> $DIR/wrong_argument_ice-2.rs:13:5
3    |
4 LL |     test(x.qux(), x.qux());
5    |     ^^^^
6    |
7 note: function defined here
8   --> $DIR/wrong_argument_ice-2.rs:1:4
9    |
10 LL | fn test(t: (i32, i32)) {}
11    |    ^^^^ -------------
12 help: wrap these arguments in parentheses to construct a tuple
13    |
14 LL |     test((x.qux(), x.qux()));
15    |          +                +
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0061`.