@@ -5,7 +5,11 @@ LL | match Foo::A {
5
5
| ^^^^^^ pattern `_` not covered
6
6
|
7
7
= note: the matched value is of type `Foo`
8
- = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8
+ help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9
+ |
10
+ LL ~ Foo::B => {}
11
+ LL + _ => todo!()
12
+ |
9
13
10
14
error[E0004]: non-exhaustive patterns: `B` not covered
11
15
--> $DIR/doc-hidden-non-exhaustive.rs:14:11
@@ -19,7 +23,11 @@ LL | B,
19
23
| - not covered
20
24
|
21
25
= note: the matched value is of type `Foo`
22
- = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
26
+ help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
27
+ |
28
+ LL ~ Foo::C => {}
29
+ LL + B => todo!()
30
+ |
23
31
24
32
error[E0004]: non-exhaustive patterns: `B` and `_` not covered
25
33
--> $DIR/doc-hidden-non-exhaustive.rs:20:11
@@ -51,7 +59,11 @@ LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
51
59
| ---- not covered
52
60
|
53
61
= note: the matched value is of type `Option<Foo>`
54
- = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
62
+ help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
63
+ |
64
+ LL ~ Some(Foo::A) => {}
65
+ LL + Some(B) | Some(_) => todo!()
66
+ |
55
67
56
68
error: aborting due to 4 previous errors
57
69
0 commit comments