1 error[E0308]: mismatched types
2 --> $DIR/pat-tuple-overfield.rs:15:9
4 LL | (1, 2, 3, 4) => {} //~ ERROR mismatched types
5 | ^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
7 = note: expected type `({integer}, {integer}, {integer})`
8 found type `(_, _, _, _)`
10 error[E0308]: mismatched types
11 --> $DIR/pat-tuple-overfield.rs:16:9
13 LL | (1, 2, .., 3, 4) => {} //~ ERROR mismatched types
14 | ^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
16 = note: expected type `({integer}, {integer}, {integer})`
17 found type `(_, _, _, _)`
19 error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
20 --> $DIR/pat-tuple-overfield.rs:20:9
22 LL | S(1, 2, 3, 4) => {}
23 | ^^^^^^^^^^^^^ expected 3 fields, found 4
25 error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
26 --> $DIR/pat-tuple-overfield.rs:22:9
28 LL | S(1, 2, .., 3, 4) => {}
29 | ^^^^^^^^^^^^^^^^^ expected 3 fields, found 4
31 error: aborting due to 4 previous errors
33 Some errors occurred: E0023, E0308.
34 For more information about an error, try `rustc --explain E0023`.