]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-38147-3.stderr
Auto merge of #43416 - tshepang:extra-layer, r=alexcrichton
[rust.git] / src / test / ui / did_you_mean / issue-38147-3.stderr
1 error[E0596]: cannot borrow immutable borrowed content `*self.s` as mutable
2   --> $DIR/issue-38147-3.rs:17:9
3    |
4 12 |     s: &'a String
5    |        ---------- use `&'a mut String` here to make mutable
6 ...
7 17 |         self.s.push('x');
8    |         ^^^^^^ cannot borrow as mutable
9
10 error: aborting due to previous error
11