]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0596]: cannot borrow immutable argument `self` as mutable |
476ff2be SL |
2 | --> $DIR/issue-31424.rs:17:15 |
3 | | | |
4 | 17 | (&mut self).bar(); | |
5 | | ^^^^ | |
6 | | | | |
7 | | try removing `&mut` here | |
8 | | cannot reborrow mutably | |
9 | ||
7cac9316 | 10 | error[E0596]: cannot borrow immutable argument `self` as mutable |
476ff2be SL |
11 | --> $DIR/issue-31424.rs:23:15 |
12 | | | |
cc61c64b XL |
13 | 22 | fn bar(self: &mut Self) { |
14 | | ---- consider changing this to `mut self` | |
476ff2be SL |
15 | 23 | (&mut self).bar(); |
16 | | ^^^^ cannot borrow mutably | |
17 | ||
7cac9316 | 18 | error: aborting due to previous error(s) |
476ff2be | 19 |