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