You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/pattern/usefulness/empty-types.never_pats.stderr
+15-15
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ note: `Result<u32, !>` defined here
111
111
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
112
112
|
113
113
LL ~ Ok(_) => {},
114
-
LL + Err(!) => todo!()
114
+
LL + Err(!)
115
115
|
116
116
117
117
error[E0004]: non-exhaustive patterns: `Ok(1_u32..=u32::MAX)` not covered
@@ -192,7 +192,7 @@ note: `Result<!, !>` defined here
192
192
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
193
193
|
194
194
LL ~ match result_never {
195
-
LL + Ok(!) | Err(!) => todo!(),
195
+
LL + Ok(!) | Err(!),
196
196
LL + }
197
197
|
198
198
@@ -210,8 +210,8 @@ note: `Result<!, !>` defined here
210
210
= note: the matched value is of type `Result<!, !>`
211
211
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
212
212
|
213
-
LL | Ok(_) => {}, Err(!) => todo!()
214
-
| +++++++++++++++++++
213
+
LL | Ok(_) => {}, Err(!)
214
+
| ++++++++
215
215
216
216
error: unreachable pattern
217
217
--> $DIR/empty-types.rs:140:13
@@ -240,7 +240,7 @@ note: `Option<Void>` defined here
240
240
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
241
241
|
242
242
LL ~ None => {},
243
-
LL + Some(!) => todo!()
243
+
LL + Some(!)
244
244
|
245
245
246
246
error[E0004]: non-exhaustive patterns: `Some(!)` not covered
@@ -258,7 +258,7 @@ note: `Option<Void>` defined here
258
258
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
259
259
|
260
260
LL ~ None => {},
261
-
LL + Some(!) => todo!()
261
+
LL + Some(!)
262
262
|
263
263
264
264
error: unreachable pattern
@@ -343,7 +343,7 @@ note: `Result<!, !>` defined here
343
343
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
344
344
|
345
345
LL ~ match *x {
346
-
LL + Ok(!) | Err(!) => todo!(),
346
+
LL + Ok(!) | Err(!),
347
347
LL ~ }
348
348
|
349
349
@@ -385,7 +385,7 @@ LL | match slice_never {
385
385
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
386
386
|
387
387
LL ~ [] => {},
388
-
LL + &[!, ..] => todo!()
388
+
LL + &[!, ..]
389
389
|
390
390
391
391
error[E0004]: non-exhaustive patterns: `&[]`, `&[!]` and `&[!, !]` not covered
@@ -492,7 +492,7 @@ note: `Option<!>` defined here
492
492
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
493
493
|
494
494
LL ~ &None => {},
495
-
LL + &Some(!) => todo!()
495
+
LL + &Some(!)
496
496
|
497
497
498
498
error[E0004]: non-exhaustive patterns: `Some(!)` not covered
@@ -510,7 +510,7 @@ note: `Option<!>` defined here
510
510
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
511
511
|
512
512
LL ~ None => {},
513
-
LL + Some(!) => todo!()
513
+
LL + Some(!)
514
514
|
515
515
516
516
error[E0004]: non-exhaustive patterns: `Err(!)` not covered
@@ -528,7 +528,7 @@ note: `Result<!, !>` defined here
528
528
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
529
529
|
530
530
LL ~ Ok(_) => {},
531
-
LL + Err(!) => todo!()
531
+
LL + Err(!)
532
532
|
533
533
534
534
error[E0004]: non-exhaustive patterns: `Err(!)` not covered
@@ -546,7 +546,7 @@ note: `Result<!, !>` defined here
546
546
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
547
547
|
548
548
LL ~ Ok(_a) => {},
549
-
LL + Err(!) => todo!()
549
+
LL + Err(!)
550
550
|
551
551
552
552
error[E0004]: non-exhaustive patterns: type `(u32, !)` is non-empty
@@ -599,7 +599,7 @@ LL | match ref_never {
599
599
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
600
600
|
601
601
LL ~ &_a if false => {},
602
-
LL + &! => todo!()
602
+
LL + &!
603
603
|
604
604
605
605
error[E0004]: non-exhaustive patterns: `Ok(!)` not covered
@@ -617,7 +617,7 @@ note: `Result<!, !>` defined here
617
617
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
618
618
|
619
619
LL ~ Err(_) => {},
620
-
LL + Ok(!) => todo!()
620
+
LL + Ok(!)
621
621
|
622
622
623
623
error[E0004]: non-exhaustive patterns: `Some(!)` not covered
@@ -635,7 +635,7 @@ note: `Option<Result<!, !>>` defined here
635
635
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
636
636
|
637
637
LL ~ None => {},
638
-
LL + Some(!) => todo!()
638
+
LL + Some(!)
639
639
|
640
640
641
641
error: aborting due to 49 previous errors; 1 warning emitted
0 commit comments