]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0004.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0004.stderr
1 error[E0004]: non-exhaustive patterns: `HastaLaVistaBaby` not covered
2   --> $DIR/E0004.rs:9:11
3    |
4 LL |     match x {
5    |           ^ pattern `HastaLaVistaBaby` not covered
6    |
7 note: `Terminator` defined here
8   --> $DIR/E0004.rs:2:5
9    |
10 LL | enum Terminator {
11    |      ----------
12 LL |     HastaLaVistaBaby,
13    |     ^^^^^^^^^^^^^^^^ not covered
14    = note: the matched value is of type `Terminator`
15 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
16    |
17 LL ~         Terminator::TalkToMyHand => {}
18 LL +         HastaLaVistaBaby => todo!()
19    |
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0004`.