]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match_non_exhaustive.stderr
Rollup merge of #93542 - GuillaumeGomez:lifetime-elision, r=oli-obk
[rust.git] / src / test / ui / match / match_non_exhaustive.stderr
1 error[E0004]: non-exhaustive patterns: `B` not covered
2   --> $DIR/match_non_exhaustive.rs:23:11
3    |
4 LL | enum L { A, B }
5    | ---------------
6    | |           |
7    | |           not covered
8    | `L` defined here
9 ...
10 LL |     match l { L::A => () };
11    |           ^ pattern `B` not covered
12    |
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`
15
16 error[E0004]: non-exhaustive patterns: type `E1` is non-empty
17   --> $DIR/match_non_exhaustive.rs:28:11
18    |
19 LL |     match e1 {};
20    |           ^^
21    |
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
24
25 error[E0004]: non-exhaustive patterns: `_` not covered
26   --> $DIR/match_non_exhaustive.rs:30:11
27    |
28 LL |     match e2 { E2::A => (), E2::B => () };
29    |           ^^ pattern `_` not covered
30    |
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
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0004`.