]>
Commit | Line | Data |
---|---|---|
f035d41b | 1 | error[E0004]: non-exhaustive patterns: `&[0_u8..=64_u8, _, _, _]` and `&[66_u8..=u8::MAX, _, _, _]` not covered |
0731742a | 2 | --> $DIR/match-byte-array-patterns-2.rs:4:11 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | match buf { |
f035d41b | 5 | | ^^^ patterns `&[0_u8..=64_u8, _, _, _]` and `&[66_u8..=u8::MAX, _, _, _]` not covered |
532ac7d7 | 6 | | |
ba9703b0 | 7 | = note: the matched value is of type `&[u8; 4]` |
5e7ed085 FG |
8 | help: 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 |
9 | | | |
10 | LL ~ b"AAAA" => {} | |
11 | LL + &[0_u8..=64_u8, _, _, _] | &[66_u8..=u8::MAX, _, _, _] => todo!() | |
12 | | | |
b7449926 | 13 | |
60c5eb7d | 14 | error[E0004]: non-exhaustive patterns: `&[]`, `&[_]`, `&[_, _]` and 2 more not covered |
0731742a | 15 | --> $DIR/match-byte-array-patterns-2.rs:10:11 |
b7449926 | 16 | | |
532ac7d7 | 17 | LL | match buf { |
60c5eb7d | 18 | | ^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 2 more not covered |
532ac7d7 | 19 | | |
ba9703b0 | 20 | = note: the matched value is of type `&[u8]` |
5e7ed085 FG |
21 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms |
22 | | | |
23 | LL ~ b"AAAA" => {} | |
24 | LL + _ => todo!() | |
25 | | | |
b7449926 XL |
26 | |
27 | error: aborting due to 2 previous errors | |
28 | ||
29 | For more information about this error, try `rustc --explain E0004`. |