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
9 | | ^ ----------- `y` moved due to this method call
11 | | move occurs because `y` has type `Vec<String>`, which does not implement the `Copy` trait
14 | |_____- captured by this `Fn` closure
16 note: this function takes ownership of the receiver `self`, which moves `y`
17 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
19 LL | fn into_iter(self) -> Self::IntoIter;
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0507`.