]> git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-31424.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-31424.stderr
1 error[E0596]: cannot borrow immutable argument `self` as mutable
2 --> $DIR/issue-31424.rs:17:15
3 |
4 LL | (&mut self).bar(); //~ ERROR cannot borrow
5 | ^^^^
6 | |
7 | cannot reborrow mutably
8 | try removing `&mut` here
9
10 error[E0596]: cannot borrow immutable argument `self` as mutable
11 --> $DIR/issue-31424.rs:23:15
12 |
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
16 |
17 LL | self.bar(); //~ ERROR cannot borrow
18 | ^^^^
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0596`.