@@ -5,7 +5,11 @@ LL | match Foo::A {
55 | ^^^^^^ pattern `_` not covered
66 |
77 = 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+ |
913
1014error[E0004]: non-exhaustive patterns: `B` not covered
1115 --> $DIR/doc-hidden-non-exhaustive.rs:14:11
@@ -19,7 +23,11 @@ LL | B,
1923 | - not covered
2024 |
2125 = 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+ |
2331
2432error[E0004]: non-exhaustive patterns: `B` and `_` not covered
2533 --> $DIR/doc-hidden-non-exhaustive.rs:20:11
@@ -51,7 +59,11 @@ LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
5159 | ---- not covered
5260 |
5361 = 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+ |
5567
5668error: aborting due to 4 previous errors
5769
0 commit comments