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 | match NonExhaustiveEnum::Unit {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^ patterns `Unit`, `Tuple(_)` and `Struct { .. }` not covered
19 note: `NonExhaustiveEnum` defined here
20 --> $DIR/enum_same_crate_empty_match.rs:5:5
22 LL | pub enum NonExhaustiveEnum {
30 LL | Struct { field: u32 }
32 = note: the matched value is of type `NonExhaustiveEnum`
33 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
35 LL ~ match NonExhaustiveEnum::Unit {
36 LL + Unit | Tuple(_) | Struct { .. } => todo!(),
40 error[E0004]: non-exhaustive patterns: `Unit`, `Tuple(_)` and `Struct { .. }` not covered
41 --> $DIR/enum_same_crate_empty_match.rs:35:11
43 LL | match NormalEnum::Unit {}
44 | ^^^^^^^^^^^^^^^^ patterns `Unit`, `Tuple(_)` and `Struct { .. }` not covered
46 note: `NormalEnum` defined here
47 --> $DIR/enum_same_crate_empty_match.rs:14:5
49 LL | pub enum NormalEnum {
57 LL | Struct { field: u32 }
59 = note: the matched value is of type `NormalEnum`
60 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
62 LL ~ match NormalEnum::Unit {
63 LL + Unit | Tuple(_) | Struct { .. } => todo!(),
67 error: aborting due to 3 previous errors
69 For more information about this error, try `rustc --explain E0004`.