1 struct S { x: u8, y: u8 }
6 (a, b) = (3, 4); //~ ERROR destructuring assignments are unstable
7 (a, b) += (3, 4); //~ ERROR invalid left-hand side of assignment
8 //~| ERROR binary assignment operation `+=` cannot be applied
10 [a, b] = [3, 4]; //~ ERROR destructuring assignments are unstable
11 [a, b] += [3, 4]; //~ ERROR invalid left-hand side of assignment
12 //~| ERROR binary assignment operation `+=` cannot be applied
14 let s = S { x: 3, y: 4 };
16 S { x: a, y: b } = s; //~ ERROR destructuring assignments are unstable
17 S { x: a, y: b } += s; //~ ERROR invalid left-hand side of assignment
18 //~| ERROR binary assignment operation `+=` cannot be applied
20 S { x: a, ..s } = S { x: 3, y: 4 };
21 //~^ ERROR functional record updates are not allowed in destructuring assignments
22 //~| ERROR destructuring assignments are unstable
26 ((a, b), c) = ((3, 4), 5); //~ ERROR destructuring assignments are unstable