@@ -79,6 +79,14 @@ LL | let (A(A(..) | B(a), _) | B(A(a, _) | B(a))) = Y;
7979 | |
8080 | pattern doesn't bind `a`
8181
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+
8290error[E0408]: variable `a` is not bound in all patterns
8391 --> $DIR/missing-bindings.rs:45:22
8492 |
@@ -96,12 +104,12 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
96104 | variable not in all patterns
97105
98106error[E0408]: variable `c` is not bound in all patterns
99- --> $DIR/missing-bindings.rs:45:12
107+ --> $DIR/missing-bindings.rs:45:33
100108 |
101109LL | 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
105113
106114error[E0408]: variable `d` is not bound in all patterns
107115 --> $DIR/missing-bindings.rs:45:33
@@ -135,14 +143,6 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
135143 | |
136144 | variable not in all patterns
137145
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-
146146error[E0408]: variable `a` is not bound in all patterns
147147 --> $DIR/missing-bindings.rs:61:29
148148 |
@@ -185,6 +185,28 @@ LL | B(b),
185185LL | B(_)
186186 | ^^^^ pattern doesn't bind `b`
187187
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+
188210error[E0408]: variable `a` is not bound in all patterns
189211 --> $DIR/missing-bindings.rs:76:13
190212 |
@@ -215,28 +237,6 @@ LL | B(b),
215237LL | V3(c),
216238 | ^^^^^ pattern doesn't bind `b`
217239
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-
240240error: aborting due to 26 previous errors
241241
242242For more information about this error, try `rustc --explain E0408`.
0 commit comments