about summary refs log tree commit diff
path: root/src/test/ui/binding/pattern-bound-var-in-for-each.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/pattern-bound-var-in-for-each.rs')
-rw-r--r--src/test/ui/binding/pattern-bound-var-in-for-each.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/binding/pattern-bound-var-in-for-each.rs b/src/test/ui/binding/pattern-bound-var-in-for-each.rs
deleted file mode 100644
index 3f725cddc5b..00000000000
--- a/src/test/ui/binding/pattern-bound-var-in-for-each.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// run-pass
-// Tests that codegen_path checks whether a
-// pattern-bound var is an upvar (when codegenning
-// the for-each body)
-
-
-fn foo(src: usize) {
-
-    match Some(src) {
-      Some(src_id) => {
-        for _i in 0_usize..10_usize {
-            let yyy = src_id;
-            assert_eq!(yyy, 0_usize);
-        }
-      }
-      _ => { }
-    }
-}
-
-pub fn main() { foo(0_usize); }