1
Fork 0

update tests for migrate mode by default

This commit is contained in:
Matthew Jasper 2019-04-22 08:40:08 +01:00
parent aa6fb6caf9
commit 8eef102270
1356 changed files with 5926 additions and 21932 deletions

View file

@ -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();
}