]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0596]: cannot borrow immutable argument `self` as mutable |
476ff2be SL |
2 | --> $DIR/issue-31424.rs:17:15 |
3 | | | |
0531ce1d | 4 | LL | (&mut self).bar(); //~ ERROR cannot borrow |
476ff2be SL |
5 | | ^^^^ |
6 | | | | |
476ff2be | 7 | | cannot reborrow mutably |
3b2f2976 | 8 | | try removing `&mut` here |
476ff2be | 9 | |
7cac9316 | 10 | error[E0596]: cannot borrow immutable argument `self` as mutable |
476ff2be SL |
11 | --> $DIR/issue-31424.rs:23:15 |
12 | | | |
0531ce1d | 13 | LL | fn bar(self: &mut Self) { |
3b2f2976 | 14 | | --------------- consider changing this to `mut self: &mut Self` |
0531ce1d | 15 | LL | (&mut self).bar(); //~ ERROR cannot borrow |
476ff2be SL |
16 | | ^^^^ cannot borrow mutably |
17 | ||
041b39d2 | 18 | error: aborting due to 2 previous errors |
476ff2be | 19 | |
0531ce1d | 20 | For more information about this error, try `rustc --explain E0596`. |