diff options
Diffstat (limited to 'tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs')
| -rw-r--r-- | tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs b/tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs index 46e0da5be9b..97ded70fc92 100644 --- a/tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs +++ b/tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs @@ -44,6 +44,10 @@ fn main() { [] => {} } match s { + //~^ ERROR `&[]` and `&[_, ..]` not covered + [..] if false => {} + } + match s { //~^ ERROR `&[_, _, ..]` not covered [] => {} [_] => {} |
