blob: 490d91ac118cb923ae3d1393d099cfe5ca973fa7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![feature(unboxed_closures, tuple_trait)]
fn to_fn<A:std::marker::Tuple,F:Fn<A>>(f: F) -> F { f }
fn test(_x: Box<usize>) {}
fn main() {
let i = Box::new(3);
let _f = to_fn(|| test(i)); //~ ERROR cannot move out
}
|