fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0382]: borrow of moved value: `some_vec` 2 --> $DIR/tab_3.rs:7:20 3 | 4LL | let some_vec = vec!["hi"]; 5 | -------- move occurs because `some_vec` has type `Vec<&str>`, which does not implement the `Copy` trait 6LL | some_vec.into_iter(); 7 | ----------- `some_vec` moved due to this method call 8LL | { 9LL | println!("{:?}", some_vec); 10 | ^^^^^^^^ value borrowed here after move 11 | 12note: `into_iter` takes ownership of the receiver `self`, which moves `some_vec` 13 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL 14 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) 15help: you can `clone` the value and consume it, but this might not be your desired behavior 16 | 17LL | some_vec.clone().into_iter(); 18 | ++++++++ 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0382`.