1 error[E0507]: cannot move out of `y`, a captured variable in an `Fn` closure
2 --> $DIR/unboxed-closures-move-upvar-from-non-once-ref-closure.rs:11:9
4 LL | let y = vec![format!("World")];
5 | - captured outer variable
8 | ^ move occurs because `y` has type `Vec<String>`, which does not implement the `Copy` trait
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0507`.