]> git.proxmox.com Git - rustc.git/blame - src/test/ui/tuple/tuple-arity-mismatch.stderr
New upstream version 1.41.1+dfsg1
[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));
5 | ^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
6 |
60c5eb7d
XL
7 = note: expected tuple `(isize, f64)`
8 found tuple `(isize, f64, {integer})`
b7449926
XL
9
10error[E0308]: mismatched types
0731742a 11 --> $DIR/tuple-arity-mismatch.rs:12:20
b7449926
XL
12 |
13LL | let y = first ((1,));
dc9dc135 14 | ^^^^ expected a tuple with 2 elements, found one with 1 element
b7449926 15 |
60c5eb7d
XL
16 = note: expected tuple `(isize, f64)`
17 found tuple `(isize,)`
b7449926
XL
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.