about summary refs log tree commit diff
path: root/src/test/ui/moves/issue-75904-move-closure-loop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/moves/issue-75904-move-closure-loop.rs')
-rw-r--r--src/test/ui/moves/issue-75904-move-closure-loop.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/moves/issue-75904-move-closure-loop.rs b/src/test/ui/moves/issue-75904-move-closure-loop.rs
deleted file mode 100644
index 6641a0376c6..00000000000
--- a/src/test/ui/moves/issue-75904-move-closure-loop.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Regression test for issue #75904
-// Tests that we point at an expression
-// that required the upvar to be moved, rather than just borrowed.
-
-struct NotCopy;
-
-fn main() {
-    let mut a = NotCopy;
-    loop {
-        || { //~ ERROR use of moved value
-            &mut a;
-            a;
-        };
-    }
-}