rust/tests/ui/rfcs/rfc-2005-default-binding-mode/slice.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
530 B
Plaintext
Raw Normal View History

error[E0004]: non-exhaustive patterns: `&[]` not covered
2019-12-29 18:23:42 -06:00
--> $DIR/slice.rs:4:11
|
2019-03-09 06:03:44 -06:00
LL | match sl {
| ^^ pattern `&[]` not covered
|
= note: the matched value is of type `&[u8]`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2023-02-27 11:43:39 -06:00
LL ~ [first, remainder @ ..] => {},
LL ~ &[] => todo!(),
|
error: aborting due to 1 previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0004`.