]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/tuple-arity-mismatch.rs:6:20 |
b7449926 XL |
3 | | |
4 | LL | 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 |
11 | note: function defined here |
12 | --> $DIR/tuple-arity-mismatch.rs:3:4 | |
13 | | | |
14 | LL | fn first((value, _): (isize, f64)) -> isize { value } | |
15 | | ^^^^^ ------------------------ | |
b7449926 XL |
16 | |
17 | error[E0308]: mismatched types | |
0731742a | 18 | --> $DIR/tuple-arity-mismatch.rs:12:20 |
b7449926 XL |
19 | | |
20 | LL | 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 |
27 | note: function defined here |
28 | --> $DIR/tuple-arity-mismatch.rs:3:4 | |
29 | | | |
30 | LL | fn first((value, _): (isize, f64)) -> isize { value } | |
31 | | ^^^^^ ------------------------ | |
b7449926 XL |
32 | |
33 | error: aborting due to 2 previous errors | |
34 | ||
35 | For more information about this error, try `rustc --explain E0308`. |