1 error[E0308]: mismatched types
2 --> $DIR/tuple-arity-mismatch.rs:6:20
4 LL | let y = first ((1,2.0,3));
5 | ----- ^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
7 | arguments to this function are incorrect
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
14 LL | fn first((value, _): (isize, f64)) -> isize { value }
15 | ^^^^^ ------------------------
17 error[E0308]: mismatched types
18 --> $DIR/tuple-arity-mismatch.rs:12:20
20 LL | let y = first ((1,));
21 | ----- ^^^^ expected a tuple with 2 elements, found one with 1 element
23 | arguments to this function are incorrect
25 = note: expected tuple `(isize, f64)`
26 found tuple `(isize,)`
27 note: function defined here
28 --> $DIR/tuple-arity-mismatch.rs:3:4
30 LL | fn first((value, _): (isize, f64)) -> isize { value }
31 | ^^^^^ ------------------------
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0308`.