diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-move-by-capture.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-move-by-capture.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/borrowck/borrowck-move-by-capture.rs b/src/test/ui/borrowck/borrowck-move-by-capture.rs deleted file mode 100644 index 6f0eb1870..000000000 --- a/src/test/ui/borrowck/borrowck-move-by-capture.rs +++ /dev/null @@ -1,11 +0,0 @@ -#![feature(unboxed_closures, tuple_trait)] - -fn to_fn_mut<A:std::marker::Tuple,F:FnMut<A>>(f: F) -> F { f } -fn to_fn_once<A:std::marker::Tuple,F:FnOnce<A>>(f: F) -> F { f } - -pub fn main() { - let bar: Box<_> = Box::new(3); - let _g = to_fn_mut(|| { - let _h = to_fn_once(move || -> isize { *bar }); //~ ERROR cannot move out of - }); -} |