1 error[E0532]: expected unit struct, unit variant or constant, found tuple variant `E::S`
2 --> $DIR/pat-tuple-underfield.rs:44:9
5 | ----------- `E::S` defined here
8 | ^^^^ help: use the tuple variant pattern syntax instead: `E::S(_, _)`
10 error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 2 fields
11 --> $DIR/pat-tuple-underfield.rs:9:9
13 LL | struct S(i32, f32);
14 | ------------------- tuple struct defined here
17 | ^^^^ expected 2 fields, found 1
19 help: use `_` to explicitly ignore each field
24 error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 2 fields
25 --> $DIR/pat-tuple-underfield.rs:14:9
27 LL | struct S(i32, f32);
28 | ------------------- tuple struct defined here
31 | ^^^^ expected 2 fields, found 1
33 help: use `_` to explicitly ignore each field
37 help: use `..` to ignore all fields
42 error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 2 fields
43 --> $DIR/pat-tuple-underfield.rs:20:9
45 LL | struct S(i32, f32);
46 | ------------------- tuple struct defined here
49 | ^^^ expected 2 fields, found 0
51 help: use `_` to explicitly ignore each field
55 help: use `..` to ignore all fields
60 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
61 --> $DIR/pat-tuple-underfield.rs:27:9
64 | ----------- tuple variant defined here
67 | ^^^^^^^ expected 2 fields, found 1
69 help: use `_` to explicitly ignore each field
74 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
75 --> $DIR/pat-tuple-underfield.rs:32:9
78 | ----------- tuple variant defined here
81 | ^^^^^^^ expected 2 fields, found 1
83 help: use `_` to explicitly ignore each field
87 help: use `..` to ignore all fields
92 error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 2 fields
93 --> $DIR/pat-tuple-underfield.rs:38:9
96 | ----------- tuple variant defined here
99 | ^^^^^^ expected 2 fields, found 0
101 help: use `_` to explicitly ignore each field
103 LL | E::S(_, _) => {}
105 help: use `..` to ignore all fields
110 error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has 4 fields
111 --> $DIR/pat-tuple-underfield.rs:50:9
113 LL | struct Point4(i32, i32, i32, i32);
114 | ---------------------------------- tuple struct defined here
116 LL | Point4( a , _ ) => {}
117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 fields, found 2
119 help: use `_` to explicitly ignore each field
121 LL | Point4( a , _ , _, _) => {}
123 help: use `..` to ignore the rest of the fields
125 LL | Point4( a, ..) => {}
128 error: aborting due to 8 previous errors
130 Some errors have detailed explanations: E0023, E0532.
131 For more information about an error, try `rustc --explain E0023`.