1 error[E0532]: expected unit struct, unit variant or constant, found tuple variant `E::S`
2 --> $DIR/pat-tuple-underfield.rs:56: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:11
13 LL | struct S(i32, f32);
14 | --- --- tuple struct has 2 fields
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:11
27 LL | struct S(i32, f32);
28 | --- --- tuple struct has 2 fields
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 has 2 fields
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 0 fields, but the corresponding tuple struct has 2 fields
61 --> $DIR/pat-tuple-underfield.rs:26:9
63 LL | struct S(i32, f32);
64 | --- --- tuple struct has 2 fields
67 | ^^^^ expected 2 fields, found 0
69 help: use `_` to explicitly ignore each field
73 help: use `..` to ignore all fields
78 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
79 --> $DIR/pat-tuple-underfield.rs:33:14
82 | --- --- tuple variant has 2 fields
85 | ^ expected 2 fields, found 1
87 help: use `_` to explicitly ignore each field
92 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
93 --> $DIR/pat-tuple-underfield.rs:38:14
96 | --- --- tuple variant has 2 fields
99 | ^ expected 2 fields, found 1
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 0 fields, but the corresponding tuple variant has 2 fields
111 --> $DIR/pat-tuple-underfield.rs:44:9
114 | --- --- tuple variant has 2 fields
117 | ^^^^^^ expected 2 fields, found 0
119 help: use `_` to explicitly ignore each field
121 LL | E::S(_, _) => {}
123 help: use `..` to ignore all fields
128 error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 2 fields
129 --> $DIR/pat-tuple-underfield.rs:50:9
132 | --- --- tuple variant has 2 fields
135 | ^^^^^^^ expected 2 fields, found 0
137 help: use `_` to explicitly ignore each field
139 LL | E::S (_, _) => {}
141 help: use `..` to ignore all fields
146 error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has 4 fields
147 --> $DIR/pat-tuple-underfield.rs:62:19
149 LL | struct Point4(i32, i32, i32, i32);
150 | --- --- --- --- tuple struct has 4 fields
152 LL | Point4( a , _ ) => {}
153 | ^ ^ expected 4 fields, found 2
155 help: use `_` to explicitly ignore each field
157 LL | Point4( a , _ , _, _) => {}
159 help: use `..` to ignore the rest of the fields
161 LL | Point4( a, ..) => {}
164 error: aborting due to 10 previous errors
166 Some errors have detailed explanations: E0023, E0532.
167 For more information about an error, try `rustc --explain E0023`.