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