1 error[E0004]: non-exhaustive patterns: `Err(_)` not covered
2 --> $DIR/uninhabited-matches-feature-gated.rs:6:19
5 | ^ pattern `Err(_)` not covered
7 ::: $SRC_DIR/core/src/result.rs:LL:COL
9 LL | Err(#[stable(feature = "rust1", since = "1.0.0")] E),
12 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
13 = note: the matched value is of type `Result<u32, &Void>`
15 error[E0004]: non-exhaustive patterns: type `&Void` is non-empty
16 --> $DIR/uninhabited-matches-feature-gated.rs:15:19
19 | ------------ `Void` defined here
21 LL | let _ = match x {};
24 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
25 = note: the matched value is of type `&Void`
26 = note: references are always considered inhabited
28 error[E0004]: non-exhaustive patterns: type `(Void,)` is non-empty
29 --> $DIR/uninhabited-matches-feature-gated.rs:18:19
31 LL | let _ = match x {};
34 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
35 = note: the matched value is of type `(Void,)`
37 error[E0004]: non-exhaustive patterns: type `[Void; 1]` is non-empty
38 --> $DIR/uninhabited-matches-feature-gated.rs:21:19
40 LL | let _ = match x {};
43 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
44 = note: the matched value is of type `[Void; 1]`
46 error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
47 --> $DIR/uninhabited-matches-feature-gated.rs:24:19
49 LL | let _ = match x {
50 | ^ pattern `&[_, ..]` not covered
52 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
53 = note: the matched value is of type `&[Void]`
55 error[E0004]: non-exhaustive patterns: `Err(_)` not covered
56 --> $DIR/uninhabited-matches-feature-gated.rs:32:19
58 LL | let _ = match x {
59 | ^ pattern `Err(_)` not covered
61 ::: $SRC_DIR/core/src/result.rs:LL:COL
63 LL | Err(#[stable(feature = "rust1", since = "1.0.0")] E),
66 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
67 = note: the matched value is of type `Result<u32, Void>`
69 error[E0005]: refutable pattern in local binding: `Err(_)` not covered
70 --> $DIR/uninhabited-matches-feature-gated.rs:37:9
73 | ^^^^^ pattern `Err(_)` not covered
75 ::: $SRC_DIR/core/src/result.rs:LL:COL
77 LL | Err(#[stable(feature = "rust1", since = "1.0.0")] E),
80 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
81 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
82 = note: the matched value is of type `Result<u32, Void>`
83 help: you might want to use `if let` to ignore the variant that isn't matched
85 LL | if let Ok(x) = x { /* */ }
88 error: aborting due to 7 previous errors
90 Some errors have detailed explanations: E0004, E0005.
91 For more information about an error, try `rustc --explain E0004`.