@@ -87,6 +87,14 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
87
87
| |
88
88
| pattern doesn't bind `c`
89
89
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
+
90
98
error[E0408]: variable `a` is not bound in all patterns
91
99
--> $DIR/missing-bindings.rs:45:22
92
100
|
@@ -95,11 +103,19 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
95
103
| |
96
104
| variable not in all patterns
97
105
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
+
98
114
error[E0408]: variable `b` is not bound in all patterns
99
- --> $DIR/missing-bindings.rs:45:22
115
+ --> $DIR/missing-bindings.rs:45:33
100
116
|
101
117
LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
102
- | - ^^^^ pattern doesn't bind `b`
118
+ | - ^^^^ pattern doesn't bind `b`
103
119
| |
104
120
| variable not in all patterns
105
121
@@ -119,14 +135,6 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
119
135
| |
120
136
| variable not in all patterns
121
137
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
-
130
138
error[E0408]: variable `a` is not bound in all patterns
131
139
--> $DIR/missing-bindings.rs:45:33
132
140
|
@@ -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 `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
-
146
146
error[E0408]: variable `a` is not bound in all patterns
147
147
--> $DIR/missing-bindings.rs:61:29
148
148
|
@@ -151,6 +151,14 @@ LL | Ok(a) | Err(_),
151
151
| |
152
152
| variable not in all patterns
153
153
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
+
154
162
error[E0408]: variable `a` is not bound in all patterns
155
163
--> $DIR/missing-bindings.rs:69:21
156
164
|
@@ -160,12 +168,13 @@ LL | B(b),
160
168
| ^^^^ pattern doesn't bind `a`
161
169
162
170
error[E0408]: variable `b` is not bound in all patterns
163
- --> $DIR/missing-bindings.rs:68:21
171
+ --> $DIR/missing-bindings.rs:72:17
164
172
|
165
- LL | A(_, a) |
166
- | ^^^^^^^ pattern doesn't bind `b`
167
173
LL | B(b),
168
174
| - variable not in all patterns
175
+ ...
176
+ LL | B(_)
177
+ | ^^^^ pattern doesn't bind `b`
169
178
170
179
error[E0408]: variable `a` is not bound in all patterns
171
180
--> $DIR/missing-bindings.rs:72:17
@@ -177,13 +186,22 @@ LL | B(_)
177
186
| ^^^^ pattern doesn't bind `a`
178
187
179
188
error[E0408]: variable `b` is not bound in all patterns
180
- --> $DIR/missing-bindings.rs:72:17
189
+ --> $DIR/missing-bindings.rs:57:13
181
190
|
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`
184
199
...
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`
187
205
188
206
error[E0408]: variable `c` is not bound in all patterns
189
207
--> $DIR/missing-bindings.rs:57:13
@@ -219,24 +237,6 @@ LL | A(_, a) |
219
237
LL | V3(c),
220
238
| ^^^^^ pattern doesn't bind `a`
221
239
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
-
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