1 error[E0004]: non-exhaustive patterns: type `EmptyNonExhaustiveEnum` is non-empty
7 note: `EmptyNonExhaustiveEnum` defined here
8 --> $DIR/auxiliary/enums.rs:18:1
10 LL | pub enum EmptyNonExhaustiveEnum {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: the matched value is of type `EmptyNonExhaustiveEnum`, which is marked as non-exhaustive
13 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
20 error[E0004]: non-exhaustive patterns: `_` not covered
21 --> $DIR/enum.rs:16:11
23 LL | match enum_unit {
24 | ^^^^^^^^^ pattern `_` not covered
26 note: `NonExhaustiveEnum` defined here
27 --> $DIR/auxiliary/enums.rs:4:1
29 LL | / pub enum NonExhaustiveEnum {
32 LL | | Struct { field: u32 },
35 = note: the matched value is of type `NonExhaustiveEnum`, which is marked as non-exhaustive
36 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
38 LL ~ NonExhaustiveEnum::Struct { .. } => "third",
42 error[E0004]: non-exhaustive patterns: `_` not covered
43 --> $DIR/enum.rs:23:11
45 LL | match enum_unit {};
46 | ^^^^^^^^^ pattern `_` not covered
48 note: `NonExhaustiveEnum` defined here
49 --> $DIR/auxiliary/enums.rs:4:1
51 LL | / pub enum NonExhaustiveEnum {
54 LL | | Struct { field: u32 },
57 = note: the matched value is of type `NonExhaustiveEnum`, which is marked as non-exhaustive
58 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
60 LL ~ match enum_unit {
65 error: aborting due to 3 previous errors
67 For more information about this error, try `rustc --explain E0004`.