2020-11-07 08:28:55 -06:00
|
|
|
error: functional record updates are not allowed in destructuring assignments
|
|
|
|
--> $DIR/note-unsupported.rs:20:17
|
|
|
|
|
|
|
|
|
LL | S { x: a, ..s } = S { x: 3, y: 4 };
|
|
|
|
| ^ help: consider removing the trailing pattern
|
|
|
|
|
2019-12-22 14:14:08 -06:00
|
|
|
error[E0368]: binary assignment operation `+=` cannot be applied to type `({integer}, {integer})`
|
2019-12-22 17:09:54 -06:00
|
|
|
--> $DIR/note-unsupported.rs:7:5
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
|
LL | (a, b) += (3, 4);
|
|
|
|
| ------^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot use `+=` on type `({integer}, {integer})`
|
|
|
|
|
|
|
|
error[E0067]: invalid left-hand side of assignment
|
2019-12-22 17:09:54 -06:00
|
|
|
--> $DIR/note-unsupported.rs:7:12
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
|
LL | (a, b) += (3, 4);
|
|
|
|
| ------ ^^
|
|
|
|
| |
|
|
|
|
| cannot assign to this expression
|
|
|
|
|
|
|
|
error[E0368]: binary assignment operation `+=` cannot be applied to type `[{integer}; 2]`
|
2019-12-22 17:09:54 -06:00
|
|
|
--> $DIR/note-unsupported.rs:11:5
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
|
LL | [a, b] += [3, 4];
|
|
|
|
| ------^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot use `+=` on type `[{integer}; 2]`
|
|
|
|
|
|
|
|
error[E0067]: invalid left-hand side of assignment
|
2019-12-22 17:09:54 -06:00
|
|
|
--> $DIR/note-unsupported.rs:11:12
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
|
LL | [a, b] += [3, 4];
|
|
|
|
| ------ ^^
|
|
|
|
| |
|
|
|
|
| cannot assign to this expression
|
|
|
|
|
|
|
|
error[E0368]: binary assignment operation `+=` cannot be applied to type `S`
|
2019-12-22 17:09:54 -06:00
|
|
|
--> $DIR/note-unsupported.rs:17:5
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
|
LL | S { x: a, y: b } += s;
|
|
|
|
| ----------------^^^^^
|
|
|
|
| |
|
|
|
|
| cannot use `+=` on type `S`
|
|
|
|
|
|
2023-04-26 19:57:13 -05:00
|
|
|
note: an implementation of `AddAssign` might be missing for `S`
|
2021-09-28 09:48:54 -05:00
|
|
|
--> $DIR/note-unsupported.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct S { x: u8, y: u8 }
|
2023-04-26 19:57:13 -05:00
|
|
|
| ^^^^^^^^ must implement `AddAssign`
|
2022-12-12 05:55:46 -06:00
|
|
|
note: the trait `AddAssign` must be implemented
|
2021-09-28 09:48:54 -05:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
error[E0067]: invalid left-hand side of assignment
|
2019-12-22 17:09:54 -06:00
|
|
|
--> $DIR/note-unsupported.rs:17:22
|
2019-12-22 14:14:08 -06:00
|
|
|
|
|
|
|
|
LL | S { x: a, y: b } += s;
|
|
|
|
| ---------------- ^^
|
|
|
|
| |
|
|
|
|
| cannot assign to this expression
|
|
|
|
|
2021-11-03 01:50:57 -05:00
|
|
|
error: aborting due to 7 previous errors
|
2019-12-22 14:14:08 -06:00
|
|
|
|
2021-11-03 01:50:57 -05:00
|
|
|
Some errors have detailed explanations: E0067, E0368.
|
2019-12-22 14:14:08 -06:00
|
|
|
For more information about an error, try `rustc --explain E0067`.
|