1 error[E0004]: non-exhaustive patterns: `B` not covered
2 --> $DIR/match_non_exhaustive.rs:23:11
10 LL | match l { L::A => () };
11 | ^ pattern `B` not covered
13 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
14 = note: the matched value is of type `L`
16 error[E0004]: non-exhaustive patterns: type `E1` is non-empty
17 --> $DIR/match_non_exhaustive.rs:28:11
22 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
23 = note: the matched value is of type `E1`, which is marked as non-exhaustive
25 error[E0004]: non-exhaustive patterns: `_` not covered
26 --> $DIR/match_non_exhaustive.rs:30:11
28 LL | match e2 { E2::A => (), E2::B => () };
29 | ^^ pattern `_` not covered
31 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
32 = note: the matched value is of type `E2`, which is marked as non-exhaustive
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0004`.