1 error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
2 --> $DIR/issue-34126.rs:6:18
4 LL | self.run(&mut self); //~ ERROR cannot borrow
7 | cannot borrow as mutable
8 | try removing `&mut` here
10 error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable
11 --> $DIR/issue-34126.rs:6:18
13 LL | self.run(&mut self); //~ ERROR cannot borrow
14 | ---- --- ^^^^^^^^^ mutable borrow occurs here
16 | | immutable borrow later used by call
17 | immutable borrow occurs here
19 error: aborting due to 2 previous errors
21 Some errors occurred: E0502, E0596.
22 For more information about an error, try `rustc --explain E0502`.