summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs')
-rw-r--r--src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs b/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs
deleted file mode 100644
index f87be4a06..000000000
--- a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// Test that we are able to infer a suitable kind for this closure
-// that is just called (`FnMut`).
-
-use std::mem;
-
-fn main() {
- let mut counter: Vec<i32> = Vec::new();
- let tick = move || mem::drop(counter);
- tick();
- tick(); //~ ERROR use of moved value: `tick`
-}