2021-08-26 19:56:45 -05:00
|
|
|
error[E0004]: non-exhaustive patterns: `Opcode(0_u8)` and `Opcode(2_u8..=u8::MAX)` not covered
|
|
|
|
--> $DIR/issue-88331.rs:11:20
|
|
|
|
|
|
|
|
|
LL | move |i| match msg_type {
|
|
|
|
| ^^^^^^^^ patterns `Opcode(0_u8)` and `Opcode(2_u8..=u8::MAX)` not covered
|
|
|
|
|
|
2021-12-15 23:06:44 -06:00
|
|
|
note: `Opcode` defined here
|
|
|
|
--> $DIR/issue-88331.rs:4:12
|
|
|
|
|
|
|
|
|
LL | pub struct Opcode(pub u8);
|
|
|
|
| ^^^^^^
|
2021-08-26 19:56:45 -05:00
|
|
|
= note: the matched value is of type `Opcode`
|
2021-12-15 20:14:17 -06:00
|
|
|
help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
|
|
|
|
|
|
|
|
|
LL ~ Opcode::OP1 => unimplemented!(),
|
|
|
|
LL ~ Opcode(0_u8) | Opcode(2_u8..=u8::MAX) => todo!(),
|
|
|
|
|
|
2021-08-26 19:56:45 -05:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `Opcode2(Opcode(0_u8))` and `Opcode2(Opcode(2_u8..=u8::MAX))` not covered
|
|
|
|
--> $DIR/issue-88331.rs:27:20
|
|
|
|
|
|
|
|
|
LL | move |i| match msg_type {
|
|
|
|
| ^^^^^^^^ patterns `Opcode2(Opcode(0_u8))` and `Opcode2(Opcode(2_u8..=u8::MAX))` not covered
|
|
|
|
|
|
2021-12-15 23:06:44 -06:00
|
|
|
note: `Opcode2` defined here
|
|
|
|
--> $DIR/issue-88331.rs:18:12
|
|
|
|
|
|
|
|
|
LL | pub struct Opcode2(Opcode);
|
|
|
|
| ^^^^^^^
|
2021-08-26 19:56:45 -05:00
|
|
|
= note: the matched value is of type `Opcode2`
|
2021-12-15 20:14:17 -06:00
|
|
|
help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
|
|
|
|
|
|
|
|
|
LL ~ Opcode2::OP2=> unimplemented!(),
|
|
|
|
LL ~ Opcode2(Opcode(0_u8)) | Opcode2(Opcode(2_u8..=u8::MAX)) => todo!(),
|
|
|
|
|
|
2021-08-26 19:56:45 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0004`.
|