summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/pattern-in-closure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/pattern-in-closure.rs')
-rw-r--r--src/test/ui/binding/pattern-in-closure.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/binding/pattern-in-closure.rs b/src/test/ui/binding/pattern-in-closure.rs
deleted file mode 100644
index 3ac8d5768..000000000
--- a/src/test/ui/binding/pattern-in-closure.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// run-pass
-#![allow(non_shorthand_field_patterns)]
-
-struct Foo {
- x: isize,
- y: isize
-}
-
-pub fn main() {
- let f = |(x, _): (isize, isize)| println!("{}", x + 1);
- let g = |Foo { x: x, y: _y }: Foo| println!("{}", x + 1);
- f((2, 3));
- g(Foo { x: 1, y: 2 });
-}