]> git.proxmox.com Git - rustc.git/blame - src/test/ui/error-codes/E0004.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0004.stderr
CommitLineData
f2b60f7d 1error[E0004]: non-exhaustive patterns: `Terminator::HastaLaVistaBaby` not covered
0731742a 2 --> $DIR/E0004.rs:9:11
2c00a5a8 3 |
5e7ed085 4LL | match x {
f2b60f7d 5 | ^ pattern `Terminator::HastaLaVistaBaby` not covered
532ac7d7 6 |
5e7ed085
FG
7note: `Terminator` defined here
8 --> $DIR/E0004.rs:2:5
9 |
10LL | enum Terminator {
11 | ----------
12LL | HastaLaVistaBaby,
13 | ^^^^^^^^^^^^^^^^ not covered
ba9703b0 14 = note: the matched value is of type `Terminator`
5e7ed085
FG
15help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
16 |
17LL ~ Terminator::TalkToMyHand => {}
f2b60f7d 18LL + Terminator::HastaLaVistaBaby => todo!()
5e7ed085 19 |
2c00a5a8
XL
20
21error: aborting due to previous error
22
0531ce1d 23For more information about this error, try `rustc --explain E0004`.