diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs b/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs deleted file mode 100644 index 72e7b5a71..000000000 --- a/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn call_f<F:FnOnce() -> isize>(f: F) -> isize { - f() -} - - - -fn main() { - let t: Box<_> = Box::new(3); - - call_f(move|| { *t + 1 }); - call_f(move|| { *t + 1 }); //~ ERROR use of moved value -} |