@@ -79,6 +79,14 @@ LL | let (A(A(..) | B(a), _) | B(A(a, _) | B(a))) = Y;
79
79
| |
80
80
| pattern doesn't bind `a`
81
81
82
+ error[E0408]: variable `c` is not bound in all patterns
83
+ --> $DIR/missing-bindings.rs:45:12
84
+ |
85
+ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
86
+ | ^^^^^^^ - variable not in all patterns
87
+ | |
88
+ | pattern doesn't bind `c`
89
+
82
90
error[E0408]: variable `a` is not bound in all patterns
83
91
--> $DIR/missing-bindings.rs:45:22
84
92
|
@@ -96,12 +104,12 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
96
104
| variable not in all patterns
97
105
98
106
error[E0408]: variable `c` is not bound in all patterns
99
- --> $DIR/missing-bindings.rs:45:12
107
+ --> $DIR/missing-bindings.rs:45:33
100
108
|
101
109
LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
102
- | ^^^^^^^ - variable not in all patterns
103
- | |
104
- | pattern doesn't bind `c`
110
+ | - ^^^^ pattern doesn't bind `c`
111
+ | |
112
+ | variable not in all patterns
105
113
106
114
error[E0408]: variable `d` is not bound in all patterns
107
115
--> $DIR/missing-bindings.rs:45:33
@@ -135,14 +143,6 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
135
143
| |
136
144
| variable not in all patterns
137
145
138
- error[E0408]: variable `c` is not bound in all patterns
139
- --> $DIR/missing-bindings.rs:45:33
140
- |
141
- LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
142
- | - ^^^^ pattern doesn't bind `c`
143
- | |
144
- | variable not in all patterns
145
-
146
146
error[E0408]: variable `a` is not bound in all patterns
147
147
--> $DIR/missing-bindings.rs:61:29
148
148
|
@@ -185,6 +185,28 @@ LL | B(b),
185
185
LL | B(_)
186
186
| ^^^^ pattern doesn't bind `b`
187
187
188
+ error[E0408]: variable `c` is not bound in all patterns
189
+ --> $DIR/missing-bindings.rs:57:13
190
+ |
191
+ LL | / V1(
192
+ LL | |
193
+ LL | |
194
+ LL | | A(
195
+ ... |
196
+ LL | | B(Ok(a) | Err(a))
197
+ LL | | ) |
198
+ | |_____________^ pattern doesn't bind `c`
199
+ LL | / V2(
200
+ LL | | A(
201
+ LL | | A(_, a) |
202
+ LL | | B(b),
203
+ ... |
204
+ LL | |
205
+ LL | | ) |
206
+ | |_____________^ pattern doesn't bind `c`
207
+ LL | V3(c),
208
+ | - variable not in all patterns
209
+
188
210
error[E0408]: variable `a` is not bound in all patterns
189
211
--> $DIR/missing-bindings.rs:76:13
190
212
|
@@ -215,28 +237,6 @@ LL | B(b),
215
237
LL | V3(c),
216
238
| ^^^^^ pattern doesn't bind `b`
217
239
218
- error[E0408]: variable `c` is not bound in all patterns
219
- --> $DIR/missing-bindings.rs:57:13
220
- |
221
- LL | / V1(
222
- LL | |
223
- LL | |
224
- LL | | A(
225
- ... |
226
- LL | | B(Ok(a) | Err(a))
227
- LL | | ) |
228
- | |_____________^ pattern doesn't bind `c`
229
- LL | / V2(
230
- LL | | A(
231
- LL | | A(_, a) |
232
- LL | | B(b),
233
- ... |
234
- LL | |
235
- LL | | ) |
236
- | |_____________^ pattern doesn't bind `c`
237
- LL | V3(c),
238
- | - variable not in all patterns
239
-
240
240
error: aborting due to 26 previous errors
241
241
242
242
For more information about this error, try `rustc --explain E0408`.
0 commit comments