]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.rs
Update tests to remove old numeric constants
[rust.git] / src / test / ui / moves / moves-based-on-type-move-out-of-closure-env-issue-1965.rs
1 #![feature(box_syntax, unboxed_closures)]
2
3 fn to_fn<A,F:Fn<A>>(f: F) -> F { f }
4
5 fn test(_x: Box<usize>) {}
6
7 fn main() {
8     let i = box 3;
9     let _f = to_fn(|| test(i)); //~ ERROR cannot move out
10 }