1 error[E0004]: non-exhaustive patterns: `Err(_)` not covered
2 --> $DIR/uninhabited-matches-feature-gated.rs:6:19
5 | ^ pattern `Err(_)` not covered
7 note: `Result<u32, &Void>` defined here
8 --> $SRC_DIR/core/src/result.rs:LL:COL
10 LL | / pub enum Result<T, E> {
11 LL | | /// Contains the success value
13 LL | | #[stable(feature = "rust1", since = "1.0.0")]
15 LL | | Err(#[stable(feature = "rust1", since = "1.0.0")] E),
19 = note: the matched value is of type `Result<u32, &Void>`
20 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
23 LL ~ Err(_) => todo!(),
26 error[E0004]: non-exhaustive patterns: type `&Void` is non-empty
27 --> $DIR/uninhabited-matches-feature-gated.rs:15:19
29 LL | let _ = match x {};
32 note: `Void` defined here
33 --> $DIR/uninhabited-matches-feature-gated.rs:2:6
37 = note: the matched value is of type `&Void`
38 = note: references are always considered inhabited
39 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
41 LL ~ let _ = match x {
46 error[E0004]: non-exhaustive patterns: type `(Void,)` is non-empty
47 --> $DIR/uninhabited-matches-feature-gated.rs:18:19
49 LL | let _ = match x {};
52 = note: the matched value is of type `(Void,)`
53 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
55 LL ~ let _ = match x {
60 error[E0004]: non-exhaustive patterns: type `[Void; 1]` is non-empty
61 --> $DIR/uninhabited-matches-feature-gated.rs:21:19
63 LL | let _ = match x {};
66 = note: the matched value is of type `[Void; 1]`
67 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
69 LL ~ let _ = match x {
74 error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
75 --> $DIR/uninhabited-matches-feature-gated.rs:24:19
77 LL | let _ = match x {
78 | ^ pattern `&[_, ..]` not covered
80 = note: the matched value is of type `&[Void]`
81 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
84 LL ~ &[_, ..] => todo!(),
87 error[E0004]: non-exhaustive patterns: `Err(_)` not covered
88 --> $DIR/uninhabited-matches-feature-gated.rs:32:19
90 LL | let _ = match x {
91 | ^ pattern `Err(_)` not covered
93 note: `Result<u32, Void>` defined here
94 --> $SRC_DIR/core/src/result.rs:LL:COL
96 LL | / pub enum Result<T, E> {
97 LL | | /// Contains the success value
99 LL | | #[stable(feature = "rust1", since = "1.0.0")]
101 LL | | Err(#[stable(feature = "rust1", since = "1.0.0")] E),
105 = note: the matched value is of type `Result<u32, Void>`
106 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
109 LL ~ Err(_) => todo!(),
112 error[E0005]: refutable pattern in local binding: `Err(_)` not covered
113 --> $DIR/uninhabited-matches-feature-gated.rs:37:9
116 | ^^^^^ pattern `Err(_)` not covered
118 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
119 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
120 note: `Result<u32, Void>` defined here
121 --> $SRC_DIR/core/src/result.rs:LL:COL
123 LL | / pub enum Result<T, E> {
124 LL | | /// Contains the success value
125 LL | | #[lang = "Ok"]
126 LL | | #[stable(feature = "rust1", since = "1.0.0")]
128 LL | | Err(#[stable(feature = "rust1", since = "1.0.0")] E),
132 = note: the matched value is of type `Result<u32, Void>`
133 help: you might want to use `if let` to ignore the variant that isn't matched
135 LL | if let Ok(x) = x { /* */ }
138 error: aborting due to 7 previous errors
140 Some errors have detailed explanations: E0004, E0005.
141 For more information about an error, try `rustc --explain E0004`.