update tests for migrate mode by default
This commit is contained in:
parent
aa6fb6caf9
commit
8eef102270
1356 changed files with 5926 additions and 21932 deletions
|
@ -1,16 +1,10 @@
|
|||
// revisions: ast mir
|
||||
//[mir]compile-flags: -Zborrowck=mir
|
||||
|
||||
fn test() {
|
||||
let v: isize = 1; //[ast]~ NOTE first assignment
|
||||
//[mir]~^ NOTE first assignment
|
||||
//[mir]~| HELP make this binding mutable
|
||||
//[mir]~| SUGGESTION mut v
|
||||
let v: isize = 1; //~ NOTE first assignment
|
||||
//~| HELP make this binding mutable
|
||||
//~| SUGGESTION mut v
|
||||
v.clone();
|
||||
v = 2; //[ast]~ ERROR cannot assign twice to immutable variable
|
||||
//[mir]~^ ERROR cannot assign twice to immutable variable `v`
|
||||
//[ast]~| NOTE cannot assign twice to immutable
|
||||
//[mir]~| NOTE cannot assign twice to immutable
|
||||
v = 2; //~ ERROR cannot assign twice to immutable variable `v`
|
||||
//~| NOTE cannot assign twice to immutable
|
||||
v.clone();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue