]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.stderr
Rollup merge of #77027 - termhn:mul_add_doc_change, r=m-ou-se
[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    = 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]`
9
10 error[E0004]: non-exhaustive patterns: `&[]`, `&[_]`, `&[_, _]` and 1 more not covered
11   --> $DIR/type_polymorphic_byte_str_literals.rs:23:11
12    |
13 LL |     match data {
14    |           ^^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 1 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`.