fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0004]: non-exhaustive patterns: `Opcode(0_u8)` and `Opcode(2_u8..=u8::MAX)` not covered 2 --> $DIR/issue-88331.rs:11:20 3 | 4LL | move |i| match msg_type { 5 | ^^^^^^^^ patterns `Opcode(0_u8)` and `Opcode(2_u8..=u8::MAX)` not covered 6 | 7note: `Opcode` defined here 8 --> $DIR/issue-88331.rs:4:12 9 | 10LL | pub struct Opcode(pub u8); 11 | ^^^^^^ 12 = note: the matched value is of type `Opcode` 13help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms 14 | 15LL ~ Opcode::OP1 => unimplemented!(), 16LL ~ Opcode(0_u8) | Opcode(2_u8..=u8::MAX) => todo!(), 17 | 18 19error[E0004]: non-exhaustive patterns: `Opcode2(Opcode(0_u8))` and `Opcode2(Opcode(2_u8..=u8::MAX))` not covered 20 --> $DIR/issue-88331.rs:27:20 21 | 22LL | move |i| match msg_type { 23 | ^^^^^^^^ patterns `Opcode2(Opcode(0_u8))` and `Opcode2(Opcode(2_u8..=u8::MAX))` not covered 24 | 25note: `Opcode2` defined here 26 --> $DIR/issue-88331.rs:18:12 27 | 28LL | pub struct Opcode2(Opcode); 29 | ^^^^^^^ 30 = note: the matched value is of type `Opcode2` 31help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms 32 | 33LL ~ Opcode2::OP2=> unimplemented!(), 34LL ~ Opcode2(Opcode(0_u8)) | Opcode2(Opcode(2_u8..=u8::MAX)) => todo!(), 35 | 36 37error: aborting due to 2 previous errors 38 39For more information about this error, try `rustc --explain E0004`.