]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/for-i-in-vec.stderr
Sync rustc_codegen_cranelift 'ddd4ce25535cf71203ba3700896131ce55fde795'
[rust.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 `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`.