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