rust/tests/ui/pattern/usefulness/slice_of_empty.exhaustive_patterns.stderr

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

17 lines
528 B
Plaintext
Raw Normal View History

2023-10-04 17:58:14 -05:00
error[E0004]: non-exhaustive patterns: `&[]` not covered
2024-02-07 09:07:15 -06:00
--> $DIR/slice_of_empty.rs:21:11
2023-10-04 17:58:14 -05:00
|
LL | match nevers {
| ^^^^^^ pattern `&[]` not covered
|
= note: the matched value is of type `&[!]`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL ~ &[_] => (),
LL ~ &[] => todo!(),
|
2023-10-04 17:58:14 -05:00
error: aborting due to 1 previous error
2023-10-04 17:58:14 -05:00
For more information about this error, try `rustc --explain E0004`.