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:12:9
4 LL | let y = vec![format!("World")];
5 | - captured outer variable
7 | -- captured by this `Fn` closure
9 | ^ ----------- `y` moved due to this method call
11 | move occurs because `y` has type `Vec<String>`, which does not implement the `Copy` trait
13 note: `into_iter` takes ownership of the receiver `self`, which moves `y`
14 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
15 help: you can `clone` the value and consume it, but this might not be your desired behavior
17 LL | y.clone().into_iter();
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0507`.