1 error: unreachable pattern
2 --> $DIR/enum_same_crate_empty_match.rs:28:9
7 note: the lint level is defined here
8 --> $DIR/enum_same_crate_empty_match.rs:1:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error[E0004]: non-exhaustive patterns: `Unit`, `Tuple(_)` and `Struct { .. }` not covered
14 --> $DIR/enum_same_crate_empty_match.rs:33:11
16 LL | / pub enum NonExhaustiveEnum {
23 LL | | Struct { field: u32 }
24 | | ------ not covered
27 | |_- `NonExhaustiveEnum` defined here
29 LL | match NonExhaustiveEnum::Unit {}
30 | ^^^^^^^^^^^^^^^^^^^^^^^ patterns `Unit`, `Tuple(_)` and `Struct { .. }` not covered
32 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
33 = note: the matched value is of type `NonExhaustiveEnum`
35 error[E0004]: non-exhaustive patterns: `Unit`, `Tuple(_)` and `Struct { .. }` not covered
36 --> $DIR/enum_same_crate_empty_match.rs:35:11
38 LL | / pub enum NormalEnum {
45 LL | | Struct { field: u32 }
46 | | ------ not covered
49 | |_- `NormalEnum` defined here
51 LL | match NormalEnum::Unit {}
52 | ^^^^^^^^^^^^^^^^ patterns `Unit`, `Tuple(_)` and `Struct { .. }` not covered
54 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
55 = note: the matched value is of type `NormalEnum`
57 error: aborting due to 3 previous errors
59 For more information about this error, try `rustc --explain E0004`.