]> git.proxmox.com Git - rustc.git/blame - src/test/ui/tuple/tuple-arity-mismatch.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / tuple / tuple-arity-mismatch.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/tuple-arity-mismatch.rs:6:20
b7449926
XL
3 |
4LL | let y = first ((1,2.0,3));
923072b8
FG
5 | ----- ^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
6 | |
7 | arguments to this function are incorrect
b7449926 8 |
60c5eb7d
XL
9 = note: expected tuple `(isize, f64)`
10 found tuple `(isize, f64, {integer})`
923072b8
FG
11note: function defined here
12 --> $DIR/tuple-arity-mismatch.rs:3:4
13 |
14LL | fn first((value, _): (isize, f64)) -> isize { value }
15 | ^^^^^ ------------------------
b7449926
XL
16
17error[E0308]: mismatched types
0731742a 18 --> $DIR/tuple-arity-mismatch.rs:12:20
b7449926
XL
19 |
20LL | let y = first ((1,));
923072b8
FG
21 | ----- ^^^^ expected a tuple with 2 elements, found one with 1 element
22 | |
23 | arguments to this function are incorrect
b7449926 24 |
60c5eb7d
XL
25 = note: expected tuple `(isize, f64)`
26 found tuple `(isize,)`
923072b8
FG
27note: function defined here
28 --> $DIR/tuple-arity-mismatch.rs:3:4
29 |
30LL | fn first((value, _): (isize, f64)) -> isize { value }
31 | ^^^^^ ------------------------
b7449926
XL
32
33error: aborting due to 2 previous errors
34
35For more information about this error, try `rustc --explain E0308`.