]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / match-byte-array-patterns-2.stderr
1 error[E0004]: non-exhaustive patterns: `&[0u8..=64u8, _, _, _]` and `&[66u8..=std::u8::MAX, _, _, _]` not covered
2 --> $DIR/match-byte-array-patterns-2.rs:4:11
3 |
4 LL | match buf {
5 | ^^^ patterns `&[0u8..=64u8, _, _, _]` and `&[66u8..=std::u8::MAX, _, _, _]` not covered
6 |
7 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8 = note: the matched value is of type `&[u8; 4]`
9
10 error[E0004]: non-exhaustive patterns: `&[]`, `&[_]`, `&[_, _]` and 2 more not covered
11 --> $DIR/match-byte-array-patterns-2.rs:10:11
12 |
13 LL | match buf {
14 | ^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 2 more not covered
15 |
16 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
17 = note: the matched value is of type `&[u8]`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0004`.