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