]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-31424.stderr
New upstream version 1.19.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 |
417 | (&mut self).bar();
5 | ^^^^
6 | |
7 | try removing `&mut` here
8 | cannot reborrow mutably
9
7cac9316 10error[E0596]: cannot borrow immutable argument `self` as mutable
476ff2be
SL
11 --> $DIR/issue-31424.rs:23:15
12 |
cc61c64b
XL
1322 | fn bar(self: &mut Self) {
14 | ---- consider changing this to `mut self`
476ff2be
SL
1523 | (&mut self).bar();
16 | ^^^^ cannot borrow mutably
17
7cac9316 18error: aborting due to previous error(s)
476ff2be 19