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