2022-11-09 02:43:37 -06:00
|
|
|
fn main() {
|
|
|
|
x = x = x;
|
2022-11-09 03:10:33 -06:00
|
|
|
//~^ ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `x` in this scope
|
|
|
|
|
2022-11-09 02:43:37 -06:00
|
|
|
x = y = y = y;
|
2022-11-09 03:10:33 -06:00
|
|
|
//~^ ERROR cannot find value `y` in this scope
|
|
|
|
//~| ERROR cannot find value `y` in this scope
|
|
|
|
//~| ERROR cannot find value `y` in this scope
|
|
|
|
//~| ERROR cannot find value `x` in this scope
|
|
|
|
|
2022-11-09 02:43:37 -06:00
|
|
|
x = y = y;
|
2022-11-09 03:10:33 -06:00
|
|
|
//~^ ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `y` in this scope
|
|
|
|
//~| ERROR cannot find value `y` in this scope
|
|
|
|
|
2022-11-09 02:43:37 -06:00
|
|
|
x = x = y;
|
2022-11-09 03:10:33 -06:00
|
|
|
//~^ ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `y` in this scope
|
|
|
|
|
2022-11-09 02:43:37 -06:00
|
|
|
x = x; // will suggest add `let`
|
2022-11-09 03:10:33 -06:00
|
|
|
//~^ ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `x` in this scope
|
|
|
|
|
2022-11-09 02:43:37 -06:00
|
|
|
x = y // will suggest add `let`
|
2022-11-09 03:10:33 -06:00
|
|
|
//~^ ERROR cannot find value `x` in this scope
|
|
|
|
//~| ERROR cannot find value `y` in this scope
|
2022-11-09 02:43:37 -06:00
|
|
|
}
|