fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
541 B19 linesraw
1error[E0061]: function takes 1 argument but 2 arguments were supplied
2  --> $DIR/wrong_argument_ice-2.rs:13:5
3   |
4LL |     test(x.qux(), x.qux());
5   |     ^^^^
6   |
7note: function defined here
8  --> $DIR/wrong_argument_ice-2.rs:1:4
9   |
10LL | fn test(t: (i32, i32)) {}
11   |    ^^^^ -------------
12help: wrap these arguments in parentheses to construct a tuple
13   |
14LL |     test((x.qux(), x.qux()));
15   |          +                +
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0061`.