1 error[E0004]: non-exhaustive patterns: `_` not covered
2 --> $DIR/doc-hidden-non-exhaustive.rs:15:11
4 LL | match HiddenEnum::A {
5 | ^^^^^^^^^^^^^ pattern `_` not covered
7 note: `HiddenEnum` defined here
8 --> $DIR/auxiliary/hidden.rs:1:1
10 LL | / pub enum HiddenEnum {
17 = note: the matched value is of type `HiddenEnum`
18 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
20 LL ~ HiddenEnum::B => {}
24 error[E0004]: non-exhaustive patterns: `B` not covered
25 --> $DIR/doc-hidden-non-exhaustive.rs:21:11
27 LL | match HiddenEnum::A {
28 | ^^^^^^^^^^^^^ pattern `B` not covered
30 note: `HiddenEnum` defined here
31 --> $DIR/auxiliary/hidden.rs:3:5
33 LL | / pub enum HiddenEnum {
41 = note: the matched value is of type `HiddenEnum`
42 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
44 LL ~ HiddenEnum::C => {}
48 error[E0004]: non-exhaustive patterns: `B` and `_` not covered
49 --> $DIR/doc-hidden-non-exhaustive.rs:27:11
51 LL | match HiddenEnum::A {
52 | ^^^^^^^^^^^^^ patterns `B` and `_` not covered
54 note: `HiddenEnum` defined here
55 --> $DIR/auxiliary/hidden.rs:3:5
57 LL | / pub enum HiddenEnum {
65 = note: the matched value is of type `HiddenEnum`
66 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
68 LL ~ HiddenEnum::A => {}
72 error[E0004]: non-exhaustive patterns: `Some(B)` and `Some(_)` not covered
73 --> $DIR/doc-hidden-non-exhaustive.rs:32:11
76 | ^^^^ patterns `Some(B)` and `Some(_)` not covered
78 note: `Option<HiddenEnum>` defined here
79 --> $SRC_DIR/core/src/option.rs:LL:COL
81 LL | / pub enum Option<T> {
83 LL | | #[lang = "None"]
84 LL | | #[stable(feature = "rust1", since = "1.0.0")]
86 LL | | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
90 = note: the matched value is of type `Option<HiddenEnum>`
91 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
93 LL ~ Some(HiddenEnum::A) => {}
94 LL + Some(B) | Some(_) => todo!()
97 error[E0004]: non-exhaustive patterns: `C` not covered
98 --> $DIR/doc-hidden-non-exhaustive.rs:38:11
100 LL | match InCrate::A {
101 | ^^^^^^^^^^ pattern `C` not covered
103 note: `InCrate` defined here
104 --> $DIR/doc-hidden-non-exhaustive.rs:11:5
111 = note: the matched value is of type `InCrate`
112 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
114 LL ~ InCrate::B => {}
118 error: aborting due to 5 previous errors
120 For more information about this error, try `rustc --explain E0004`.