fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
233 B15 linesraw
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() {}