fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1// run-rustfix 2#![allow(dead_code)] 3 4struct Foo { 5 v: Vec<u32>, 6} 7 8impl 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 15fn main() {}