]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/issue-38147-2.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / did_you_mean / issue-38147-2.stderr
1 error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference
2   --> $DIR/issue-38147-2.rs:9:9
3    |
4 LL |         self.s.push('x');
5    |         ^^^^^^^^^^^^^^^^ cannot borrow as mutable
6    |
7 help: consider changing this to be mutable
8    |
9 LL |     s: &'a mut String,
10    |            +++
11
12 error[E0596]: cannot borrow `*self.longer_name` as mutable, as it is behind a `&` reference
13   --> $DIR/issue-38147-2.rs:12:9
14    |
15 LL |         self.longer_name.push(13);
16    |         ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
17    |
18 help: consider changing this to be mutable
19    |
20 LL |     longer_name:   &   'a mut Vec<u8>
21    |                           +++
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0596`.