rust/src/test/ui/did_you_mean/issue-34126.rs
2018-12-25 21:08:33 -07:00

14 lines
195 B
Rust

struct Z { }
impl Z {
fn run(&self, z: &mut Z) { }
fn start(&mut self) {
self.run(&mut self); //~ ERROR cannot borrow
}
}
fn main() {
let mut z = Z {};
z.start();
}