tweak "make mut" spans when assigning to locals
This commit is contained in:
parent
3320f2fab6
commit
fd8aa5ec7d
12 changed files with 46 additions and 41 deletions
|
@ -7,7 +7,7 @@ LL | let _ = &mut x[2..4];
|
|||
help: consider changing this to be a mutable reference
|
||||
|
|
||||
LL | let x: &[isize] = &mut [1, 2, 3, 4, 5];
|
||||
| ~~~~~~~~~~~~~~~~~~~~
|
||||
| +++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue