19 (1, 2, 3, 4) => {} //~ ERROR mismatched types
20 (1, 2, .., 3, 4) => {} //~ ERROR mismatched types
25 //~^ ERROR this pattern has 4 fields, but the corresponding tuple struct has 3 fields
26 S(1, 2, .., 3, 4) => {}
27 //~^ ERROR this pattern has 4 fields, but the corresponding tuple struct has 3 fields
30 match M(1, 2, 3, 4, 5) {
31 M(1, 2, 3, 4, 5, 6) => {}
32 //~^ ERROR this pattern has 6 fields, but the corresponding tuple struct has 5 fields
39 //~^ ERROR this pattern has 6 fields, but the corresponding tuple struct has 5 fields
48 //~^^ ERROR this pattern has 6 fields, but the corresponding tuple struct has 5 fields
52 Z0() => {} //~ ERROR expected tuple struct or tuple variant, found unit struct `Z0`
53 Z0(_) => {} //~ ERROR expected tuple struct or tuple variant, found unit struct `Z0`
54 Z0(_, _) => {} //~ ERROR expected tuple struct or tuple variant, found unit struct `Z0`
57 Z1 => {} //~ ERROR match bindings cannot shadow tuple structs
59 Z1(_) => {} //~ ERROR this pattern has 1 field, but the corresponding tuple struct has 0 fields
60 Z1(_, _) => {} //~ ERROR this pattern has 2 fields, but the corresponding tuple struct has 0 fields
64 E1::Z0() => {} //~ ERROR expected tuple struct or tuple variant, found unit variant `E1::Z0`
65 E1::Z0(_) => {} //~ ERROR expected tuple struct or tuple variant, found unit variant `E1::Z0`
66 E1::Z0(_, _) => {} //~ ERROR expected tuple struct or tuple variant, found unit variant `E1::Z0`
69 E1::Z1 => {} //~ ERROR expected unit struct, unit variant or constant, found tuple variant `E1::Z1`
71 E1::Z1(_) => {} //~ ERROR this pattern has 1 field, but the corresponding tuple variant has 0 fields
72 E1::Z1(_, _) => {} //~ ERROR this pattern has 2 fields, but the corresponding tuple variant has 0 fields