fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
737 B22 linesraw
1error[E0382]: use of moved value: `v`
2  --> $DIR/issue-83924.rs:15:14
3   |
4LL |     let v = &mut values;
5   |         - move occurs because `v` has type `&mut Vec<i32>`, which does not implement the `Copy` trait
6...
7LL |     for n in v {
8   |              - `v` moved due to this implicit call to `.into_iter()`
9...
10LL |     for n in v {
11   |              ^ value used here after move
12   |
13note: `into_iter` takes ownership of the receiver `self`, which moves `v`
14  --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
15help: consider creating a fresh reborrow of `v` here
16   |
17LL |     for n in &mut *v {
18   |              ++++++
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0382`.