parent
6810f5286b
commit
d871b8ad4a
77 changed files with 179 additions and 164 deletions
|
@ -14,7 +14,8 @@
|
|||
fn test() {
|
||||
let v: isize = 1; //[ast]~ NOTE first assignment
|
||||
//[mir]~^ NOTE first assignment
|
||||
//[mir]~| NOTE consider changing this to `mut v`
|
||||
//[mir]~| HELP make this binding mutable
|
||||
//[mir]~| SUGGESTION mut v
|
||||
v.clone();
|
||||
v = 2; //[ast]~ ERROR cannot assign twice to immutable variable
|
||||
//[mir]~^ ERROR cannot assign twice to immutable variable `v`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue