]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-31424.stderr
Auto merge of #43416 - tshepang:extra-layer, r=alexcrichton
[rust.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 17 |         (&mut self).bar();
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 22 |     fn bar(self: &mut Self) {
14    |            --------------- consider changing this to `mut self: &mut Self`
15 23 |         (&mut self).bar();
16    |               ^^^^ cannot borrow mutably
17
18 error: aborting due to 2 previous errors
19