]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/for-i-in-vec.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / suggestions / for-i-in-vec.stderr
1 error[E0507]: cannot move out of `self.v` which is behind a shared reference
2 --> $DIR/for-i-in-vec.rs:10:18
3 |
4 LL | for _ in self.v {
5 | ^^^^^^
6 | |
7 | move occurs because `self.v` has type `std::vec::Vec<u32>`, which does not implement the `Copy` trait
8 | help: consider iterating over a slice of the `Vec<_>`'s content: `&self.v`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0507`.