@@ -87,6 +87,14 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
8787 | |
8888 | pattern doesn't bind `c`
8989
90+ error[E0408]: variable `b` is not bound in all patterns
91+ --> $DIR/missing-bindings.rs:45:22
92+ |
93+ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
94+ | - ^^^^ pattern doesn't bind `b`
95+ | |
96+ | variable not in all patterns
97+
9098error[E0408]: variable `a` is not bound in all patterns
9199 --> $DIR/missing-bindings.rs:45:22
92100 |
@@ -95,11 +103,19 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
95103 | |
96104 | variable not in all patterns
97105
106+ error[E0408]: variable `e` is not bound in all patterns
107+ --> $DIR/missing-bindings.rs:45:10
108+ |
109+ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
110+ | ^^^^^^^^^^^^^^^^^^^^ - variable not in all patterns
111+ | |
112+ | pattern doesn't bind `e`
113+
98114error[E0408]: variable `b` is not bound in all patterns
99- --> $DIR/missing-bindings.rs:45:22
115+ --> $DIR/missing-bindings.rs:45:33
100116 |
101117LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
102- | - ^^^^ pattern doesn't bind `b`
118+ | - ^^^^ pattern doesn't bind `b`
103119 | |
104120 | variable not in all patterns
105121
@@ -119,14 +135,6 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
119135 | |
120136 | variable not in all patterns
121137
122- error[E0408]: variable `e` is not bound in all patterns
123- --> $DIR/missing-bindings.rs:45:10
124- |
125- LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
126- | ^^^^^^^^^^^^^^^^^^^^ - variable not in all patterns
127- | |
128- | pattern doesn't bind `e`
129-
130138error[E0408]: variable `a` is not bound in all patterns
131139 --> $DIR/missing-bindings.rs:45:33
132140 |
@@ -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 `b` 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 `b`
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 |
@@ -151,6 +151,14 @@ LL | Ok(a) | Err(_),
151151 | |
152152 | variable not in all patterns
153153
154+ error[E0408]: variable `b` is not bound in all patterns
155+ --> $DIR/missing-bindings.rs:68:21
156+ |
157+ LL | A(_, a) |
158+ | ^^^^^^^ pattern doesn't bind `b`
159+ LL | B(b),
160+ | - variable not in all patterns
161+
154162error[E0408]: variable `a` is not bound in all patterns
155163 --> $DIR/missing-bindings.rs:69:21
156164 |
@@ -160,12 +168,13 @@ LL | B(b),
160168 | ^^^^ pattern doesn't bind `a`
161169
162170error[E0408]: variable `b` is not bound in all patterns
163- --> $DIR/missing-bindings.rs:68:21
171+ --> $DIR/missing-bindings.rs:72:17
164172 |
165- LL | A(_, a) |
166- | ^^^^^^^ pattern doesn't bind `b`
167173LL | B(b),
168174 | - variable not in all patterns
175+ ...
176+ LL | B(_)
177+ | ^^^^ pattern doesn't bind `b`
169178
170179error[E0408]: variable `a` is not bound in all patterns
171180 --> $DIR/missing-bindings.rs:72:17
@@ -177,13 +186,22 @@ LL | B(_)
177186 | ^^^^ pattern doesn't bind `a`
178187
179188error[E0408]: variable `b` is not bound in all patterns
180- --> $DIR/missing-bindings.rs:72:17
189+ --> $DIR/missing-bindings.rs:57:13
181190 |
182- LL | B(b),
183- | - variable not in all patterns
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 `b`
184199...
185- LL | B(_)
186- | ^^^^ pattern doesn't bind `b`
200+ LL | B(b),
201+ | - variable not in all patterns
202+ ...
203+ LL | V3(c),
204+ | ^^^^^ pattern doesn't bind `b`
187205
188206error[E0408]: variable `c` is not bound in all patterns
189207 --> $DIR/missing-bindings.rs:57:13
@@ -219,24 +237,6 @@ LL | A(_, a) |
219237LL | V3(c),
220238 | ^^^^^ pattern doesn't bind `a`
221239
222- error[E0408]: variable `b` is not bound in all patterns
223- --> $DIR/missing-bindings.rs:57:13
224- |
225- LL | / V1(
226- LL | |
227- LL | |
228- LL | | A(
229- ... |
230- LL | | B(Ok(a) | Err(a))
231- LL | | ) |
232- | |_____________^ pattern doesn't bind `b`
233- ...
234- LL | B(b),
235- | - variable not in all patterns
236- ...
237- LL | V3(c),
238- | ^^^^^ pattern doesn't bind `b`
239-
240240error: aborting due to 26 previous errors
241241
242242For more information about this error, try `rustc --explain E0408`.
0 commit comments