1 error[E0382]: use of moved value: `orig`
2 --> $DIR/issue-64559.rs:4:20
4 LL | let orig = vec![true];
5 | ---- move occurs because `orig` has type `Vec<bool>`, which does not implement the `Copy` trait
6 LL | for _val in orig {}
9 | `orig` moved due to this implicit call to `.into_iter()`
10 | help: consider borrowing to avoid moving into the for loop: `&orig`
11 LL | let _closure = || orig;
12 | ^^ ---- use occurs due to use in closure
14 | value used here after move
16 note: this function consumes the receiver `self` by taking ownership of it, which moves `orig`
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 E0382`.