@@ -23,12 +23,18 @@ LL | (2,) => {}
23
23
error: unreachable pattern
24
24
--> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
25
25
|
26
+ LL | (1 | 2,) => {}
27
+ | ^^^^^^^^ unreachable pattern
28
+ |
29
+ note: these patterns collectively make the last one unreachable
30
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
31
+ |
26
32
LL | (1,) => {}
27
33
| ---- matches some of the same values
28
34
LL | (2,) => {}
29
35
| ---- matches some of the same values
30
36
LL | (1 | 2,) => {}
31
- | ^^^^^^^^ unreachable pattern
37
+ | ^^^^^^^^ collectively making this unreachable
32
38
33
39
error: unreachable pattern
34
40
--> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
@@ -68,13 +74,19 @@ LL | (2 | 1, 4) => {}
68
74
error: unreachable pattern
69
75
--> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
70
76
|
77
+ LL | (1, 4 | 5) => {}
78
+ | ^^^^^^^^^^ unreachable pattern
79
+ |
80
+ note: these patterns collectively make the last one unreachable
81
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
82
+ |
71
83
LL | (1 | 2, 3 | 4) => {}
72
84
| -------------- matches some of the same values
73
85
...
74
86
LL | (1, 5 | 6) => {}
75
87
| ---------- matches some of the same values
76
88
LL | (1, 4 | 5) => {}
77
- | ^^^^^^^^^^ unreachable pattern
89
+ | ^^^^^^^^^^ collectively making this unreachable
78
90
79
91
error: unreachable pattern
80
92
--> $DIR/exhaustiveness-unreachable-pattern.rs:34:13
@@ -177,10 +189,16 @@ LL | (true, 0 | 0) => {}
177
189
error: unreachable pattern
178
190
--> $DIR/exhaustiveness-unreachable-pattern.rs:84:17
179
191
|
192
+ LL | (_, 0 | 0) => {}
193
+ | ^ unreachable pattern
194
+ |
195
+ note: these patterns collectively make the last one unreachable
196
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:84:17
197
+ |
180
198
LL | (true, 0 | 0) => {}
181
199
| - matches some of the same values
182
200
LL | (_, 0 | 0) => {}
183
- | - ^ unreachable pattern
201
+ | - ^ collectively making this unreachable
184
202
| |
185
203
| matches some of the same values
186
204
@@ -203,26 +221,40 @@ LL | [true
203
221
error: unreachable pattern
204
222
--> $DIR/exhaustiveness-unreachable-pattern.rs:111:36
205
223
|
224
+ LL | (true | false, None | Some(true
225
+ | ^^^^ unreachable pattern
226
+ |
227
+ note: these patterns collectively make the last one unreachable
228
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:111:36
229
+ |
206
230
LL | (true, Some(_)) => {}
207
231
| - matches some of the same values
208
232
LL | (false, Some(true)) => {}
209
233
| ---- matches some of the same values
210
234
LL | (true | false, None | Some(true
211
- | ^^^^ unreachable pattern
235
+ | ^^^^ collectively making this unreachable
212
236
213
237
error: unreachable pattern
214
238
--> $DIR/exhaustiveness-unreachable-pattern.rs:116:14
215
239
|
216
240
LL | (true
217
241
| ^^^^ unreachable pattern
218
242
...
243
+ LL | (true | false, None | Some(t_or_f!())) => {}
244
+ | --------- in this macro invocation
245
+ |
246
+ note: these patterns collectively make the last one unreachable
247
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:116:14
248
+ |
249
+ LL | (true
250
+ | ^^^^ collectively making this unreachable
251
+ ...
219
252
LL | (true, Some(_)) => {}
220
253
| - matches some of the same values
221
254
LL | (false, Some(true)) => {}
222
255
| ---- matches some of the same values
223
256
LL | (true | false, None | Some(t_or_f!())) => {}
224
257
| --------- in this macro invocation
225
- |
226
258
= note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
227
259
228
260
error: unreachable pattern
@@ -245,24 +277,36 @@ LL | | false) => {}
245
277
error: unreachable pattern
246
278
--> $DIR/exhaustiveness-unreachable-pattern.rs:154:15
247
279
|
280
+ LL | | true) => {}
281
+ | ^^^^ unreachable pattern
282
+ |
283
+ note: these patterns collectively make the last one unreachable
284
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:154:15
285
+ |
248
286
LL | (false, true) => {}
249
287
| ---- matches some of the same values
250
288
LL | (true, true) => {}
251
289
| ---- matches some of the same values
252
290
LL | (false | true, false
253
291
LL | | true) => {}
254
- | ^^^^ unreachable pattern
292
+ | ^^^^ collectively making this unreachable
255
293
256
294
error: unreachable pattern
257
295
--> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
258
296
|
297
+ LL | | true,
298
+ | ^^^^ unreachable pattern
299
+ |
300
+ note: these patterns collectively make the last one unreachable
301
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
302
+ |
259
303
LL | (true, false) => {}
260
304
| ---- matches some of the same values
261
305
LL | (true, true) => {}
262
306
| ---- matches some of the same values
263
307
LL | (false
264
308
LL | | true,
265
- | ^^^^ unreachable pattern
309
+ | ^^^^ collectively making this unreachable
266
310
267
311
error: unreachable pattern
268
312
--> $DIR/exhaustiveness-unreachable-pattern.rs:165:15
0 commit comments