]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.stderr
Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett
[rust.git] / src / test / ui / pattern / usefulness / type_polymorphic_byte_str_literals.stderr
1 error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
2   --> $DIR/type_polymorphic_byte_str_literals.rs:11:11
3    |
4 LL |     match data {
5    |           ^^^^ pattern `&[_, ..]` not covered
6    |
7    = note: the matched value is of type `&[u8]`
8 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
9    |
10 LL ~         b"" => 1,
11 LL ~         &[_, ..] => todo!(),
12    |
13
14 error[E0004]: non-exhaustive patterns: `&[]`, `&[_]`, `&[_, _]` and 1 more not covered
15   --> $DIR/type_polymorphic_byte_str_literals.rs:23:11
16    |
17 LL |     match data {
18    |           ^^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 1 more not covered
19    |
20    = note: the matched value is of type `&[u8]`
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 ~         [_, _, _] => 1,
24 LL ~         _ => todo!(),
25    |
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0004`.