fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0382]: use of moved value: `orig` 2 --> $DIR/issue-64559.rs:4:20 3 | 4LL | let orig = vec![true]; 5 | ---- move occurs because `orig` has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait 6LL | for _val in orig {} 7 | ---- 8 | | 9 | value moved here 10 | help: consider borrowing to avoid moving into the for loop: `&orig` 11LL | let _closure = || orig; 12 | ^^ ---- use occurs due to use in closure 13 | | 14 | value used here after move 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0382`.