1
1
error[E0004]: non-exhaustive patterns: `_` not covered
2
- --> $DIR/doc-hidden-non-exhaustive.rs:8 :11
2
+ --> $DIR/doc-hidden-non-exhaustive.rs:15 :11
3
3
|
4
4
LL | match HiddenEnum::A {
5
5
| ^^^^^^^^^^^^^ pattern `_` not covered
@@ -8,7 +8,7 @@ LL | match HiddenEnum::A {
8
8
= note: the matched value is of type `HiddenEnum`
9
9
10
10
error[E0004]: non-exhaustive patterns: `B` not covered
11
- --> $DIR/doc-hidden-non-exhaustive.rs:14 :11
11
+ --> $DIR/doc-hidden-non-exhaustive.rs:21 :11
12
12
|
13
13
LL | match HiddenEnum::A {
14
14
| ^^^^^^^^^^^^^ pattern `B` not covered
@@ -23,7 +23,7 @@ LL | B,
23
23
= note: the matched value is of type `HiddenEnum`
24
24
25
25
error[E0004]: non-exhaustive patterns: `B` and `_` not covered
26
- --> $DIR/doc-hidden-non-exhaustive.rs:20 :11
26
+ --> $DIR/doc-hidden-non-exhaustive.rs:27 :11
27
27
|
28
28
LL | match HiddenEnum::A {
29
29
| ^^^^^^^^^^^^^ patterns `B` and `_` not covered
@@ -38,7 +38,7 @@ LL | B,
38
38
= note: the matched value is of type `HiddenEnum`
39
39
40
40
error[E0004]: non-exhaustive patterns: `Some(B)` and `Some(_)` not covered
41
- --> $DIR/doc-hidden-non-exhaustive.rs:25 :11
41
+ --> $DIR/doc-hidden-non-exhaustive.rs:32 :11
42
42
|
43
43
LL | match None {
44
44
| ^^^^ patterns `Some(B)` and `Some(_)` not covered
@@ -52,6 +52,24 @@ LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
52
52
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
53
53
= note: the matched value is of type `Option<HiddenEnum>`
54
54
55
- error: aborting due to 4 previous errors
55
+ error[E0004]: non-exhaustive patterns: `C` not covered
56
+ --> $DIR/doc-hidden-non-exhaustive.rs:38:11
57
+ |
58
+ LL | / enum InCrate {
59
+ LL | | A,
60
+ LL | | B,
61
+ LL | | #[doc(hidden)]
62
+ LL | | C,
63
+ | | - not covered
64
+ LL | | }
65
+ | |_- `InCrate` defined here
66
+ ...
67
+ LL | match InCrate::A {
68
+ | ^^^^^^^^^^ pattern `C` not covered
69
+ |
70
+ = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
71
+ = note: the matched value is of type `InCrate`
72
+
73
+ error: aborting due to 5 previous errors
56
74
57
75
For more information about this error, try `rustc --explain E0004`.
0 commit comments