9 // Test that this closure is inferred to `FnOnce` because it moves
10 // from `y.0`. This affects the error output (the error is that
11 // the closure implements `FnOnce`, not that it moves from inside
13 let y = (vec![1, 2, 3], 0);
14 let c = || drop(y.0); //~ ERROR expected a closure that implements the `Fn` trait