4 if Some(x) = foo {} //~ ERROR cannot find value `x` in this scope
5 //~^ ERROR mismatched types
6 //~^^ ERROR destructuring assignments are unstable
7 if Some(foo) = bar {} //~ ERROR mismatched types
8 //~^ ERROR destructuring assignments are unstable
9 if 3 = foo {} //~ ERROR mismatched types
10 if Some(3) = foo {} //~ ERROR mismatched types
11 //~^ ERROR destructuring assignments are unstable
12 //~^^ ERROR invalid left-hand side of assignment