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 {
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
31 = note: the matched value is of type `NonExhaustiveEnum`, which is marked as non-exhaustive
32 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
34 LL ~ NonExhaustiveEnum::Struct { .. } => "third",
38 error[E0004]: non-exhaustive patterns: `_` not covered
39 --> $DIR/enum.rs:23:11
41 LL | match enum_unit {};
42 | ^^^^^^^^^ pattern `_` not covered
44 note: `NonExhaustiveEnum` defined here
45 --> $DIR/auxiliary/enums.rs:4:1
47 LL | pub enum NonExhaustiveEnum {
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
49 = note: the matched value is of type `NonExhaustiveEnum`, which is marked as non-exhaustive
50 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
52 LL ~ match enum_unit {
57 error: aborting due to 3 previous errors
59 For more information about this error, try `rustc --explain E0004`.