fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable 2 --> $DIR/suggest-local-var-imm-and-mut.rs:12:22 3 | 4LL | self.foo(self.bar()); 5 | ---- --- ^^^^^^^^^^ mutable borrow occurs here 6 | | | 7 | | immutable borrow later used by call 8 | immutable borrow occurs here 9 10error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable 11 --> $DIR/suggest-local-var-imm-and-mut.rs:24:29 12 | 13LL | Self::foo(self, Self::bar(self)); 14 | --------- ---- ^^^^^^^^^^^^^^^ mutable borrow occurs here 15 | | | 16 | | immutable borrow occurs here 17 | immutable borrow later used by call 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0502`.