summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/irrefutable-slice-patterns.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/irrefutable-slice-patterns.rs')
-rw-r--r--src/test/ui/binding/irrefutable-slice-patterns.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/binding/irrefutable-slice-patterns.rs b/src/test/ui/binding/irrefutable-slice-patterns.rs
deleted file mode 100644
index 048e1e5e9..000000000
--- a/src/test/ui/binding/irrefutable-slice-patterns.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// run-pass
-
-// Regression test for #47096.
-
-fn foo(s: &[i32]) -> &[i32] {
- let &[ref xs @ ..] = s;
- xs
-}
-
-fn main() {
- let x = [1, 2, 3];
- let y = foo(&x);
- assert_eq!(x, y);
-}