1 error: functional record updates are not allowed in destructuring assignments
2 --> $DIR/note-unsupported.rs:20:17
4 LL | S { x: a, ..s } = S { x: 3, y: 4 };
5 | ^ help: consider removing the trailing pattern
7 error[E0368]: binary assignment operation `+=` cannot be applied to type `({integer}, {integer})`
8 --> $DIR/note-unsupported.rs:7:5
10 LL | (a, b) += (3, 4);
13 | cannot use `+=` on type `({integer}, {integer})`
15 error[E0067]: invalid left-hand side of assignment
16 --> $DIR/note-unsupported.rs:7:12
18 LL | (a, b) += (3, 4);
21 | cannot assign to this expression
23 error[E0368]: binary assignment operation `+=` cannot be applied to type `[{integer}; 2]`
24 --> $DIR/note-unsupported.rs:11:5
26 LL | [a, b] += [3, 4];
29 | cannot use `+=` on type `[{integer}; 2]`
31 error[E0067]: invalid left-hand side of assignment
32 --> $DIR/note-unsupported.rs:11:12
34 LL | [a, b] += [3, 4];
37 | cannot assign to this expression
39 error[E0368]: binary assignment operation `+=` cannot be applied to type `S`
40 --> $DIR/note-unsupported.rs:17:5
42 LL | S { x: a, y: b } += s;
43 | ----------------^^^^^
45 | cannot use `+=` on type `S`
47 note: an implementation of `AddAssign<_>` might be missing for `S`
48 --> $DIR/note-unsupported.rs:1:1
50 LL | struct S { x: u8, y: u8 }
51 | ^^^^^^^^ must implement `AddAssign<_>`
52 note: the following trait must be implemented
53 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
55 LL | pub trait AddAssign<Rhs = Self> {
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 error[E0067]: invalid left-hand side of assignment
59 --> $DIR/note-unsupported.rs:17:22
61 LL | S { x: a, y: b } += s;
64 | cannot assign to this expression
66 error: aborting due to 7 previous errors
68 Some errors have detailed explanations: E0067, E0368.
69 For more information about an error, try `rustc --explain E0067`.