]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/for-i-in-vec.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / suggestions / for-i-in-vec.rs
1 // run-rustfix
2 #![allow(dead_code)]
3
4 struct Foo {
5     v: Vec<u32>,
6 }
7
8 impl Foo {
9     fn bar(&self) {
10         for _ in self.v { //~ ERROR cannot move out of `self.v` which is behind a shared reference
11         }
12     }
13 }
14
15 fn main() {}