1 error[E0004]: non-exhaustive patterns: `Unit`, `Tuple(_)` and `Struct { .. }` not covered
2 --> $DIR/enum_same_crate_empty_match.rs:33:11
4 LL | / pub enum NonExhaustiveEnum {
11 LL | | Struct { field: u32 }
12 | | ------ not covered
15 | |_- `NonExhaustiveEnum` defined here
17 LL | match NonExhaustiveEnum::Unit {}
18 | ^^^^^^^^^^^^^^^^^^^^^^^ patterns `Unit`, `Tuple(_)` and `Struct { .. }` not covered
20 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
21 = note: the matched value is of type `NonExhaustiveEnum`
23 error[E0004]: non-exhaustive patterns: `Unit`, `Tuple(_)` and `Struct { .. }` not covered
24 --> $DIR/enum_same_crate_empty_match.rs:35:11
26 LL | / pub enum NormalEnum {
33 LL | | Struct { field: u32 }
34 | | ------ not covered
37 | |_- `NormalEnum` defined here
39 LL | match NormalEnum::Unit {}
40 | ^^^^^^^^^^^^^^^^ patterns `Unit`, `Tuple(_)` and `Struct { .. }` not covered
42 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
43 = note: the matched value is of type `NormalEnum`
45 error: aborting due to 2 previous errors
47 For more information about this error, try `rustc --explain E0004`.