Change from label to suggestion.
This commit changes the label to a maybe incorrect suggestion for better integration with RLS.
This commit is contained in:
parent
f8c1b0cd5b
commit
9e49ac067f
3 changed files with 10 additions and 7 deletions
|
|
@ -2,7 +2,7 @@ error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` referenc
|
|||
--> $DIR/issue-38147-2.rs:17:9
|
||||
|
|
||||
LL | s: &'a String
|
||||
| ------------- use `&'a mut String` here to make mutable
|
||||
| ---------- help: consider changing this to be mutable: `&'a mut String`
|
||||
...
|
||||
LL | self.s.push('x');
|
||||
| ^^^^^^ cannot borrow as mutable
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` referenc
|
|||
--> $DIR/issue-38147-3.rs:17:9
|
||||
|
|
||||
LL | s: &'a String
|
||||
| ------------- use `&'a mut String` here to make mutable
|
||||
| ---------- help: consider changing this to be mutable: `&'a mut String`
|
||||
...
|
||||
LL | self.s.push('x');
|
||||
| ^^^^^^ cannot borrow as mutable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue