summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/slice-patterns-reachability.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pattern/usefulness/slice-patterns-reachability.rs')
-rw-r--r--src/test/ui/pattern/usefulness/slice-patterns-reachability.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/ui/pattern/usefulness/slice-patterns-reachability.rs b/src/test/ui/pattern/usefulness/slice-patterns-reachability.rs
deleted file mode 100644
index 7c747b5e0..000000000
--- a/src/test/ui/pattern/usefulness/slice-patterns-reachability.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-#![deny(unreachable_patterns)]
-
-fn main() {
- let s: &[bool] = &[];
-
- match s {
- [true, ..] => {}
- [true, ..] => {} //~ ERROR unreachable pattern
- [true] => {} //~ ERROR unreachable pattern
- [..] => {}
- }
- match s {
- [.., true] => {}
- [.., true] => {} //~ ERROR unreachable pattern
- [true] => {} //~ ERROR unreachable pattern
- [..] => {}
- }
- match s {
- [false, .., true] => {}
- [false, .., true] => {} //~ ERROR unreachable pattern
- [false, true] => {} //~ ERROR unreachable pattern
- [false] => {}
- [..] => {}
- }
-}