1 error[E0596]: cannot borrow immutable argument `self` as mutable
2 --> $DIR/issue-31424.rs:17:15
4 LL | (&mut self).bar(); //~ ERROR cannot borrow
7 | cannot reborrow mutably
8 | try removing `&mut` here
10 error[E0596]: cannot borrow immutable argument `self` as mutable
11 --> $DIR/issue-31424.rs:23:15
13 LL | (&mut self).bar(); //~ ERROR cannot borrow
14 | ^^^^ cannot borrow mutably
15 help: consider removing the `&mut`, as it is an immutable binding to a mutable reference
17 LL | self.bar(); //~ ERROR cannot borrow
20 error: aborting due to 2 previous errors
22 For more information about this error, try `rustc --explain E0596`.