|
| 1 | +error[E0070]: invalid left-hand side of assignment |
| 2 | + --> $DIR/destructuring-assignment.rs:6:5 |
| 3 | + | |
| 4 | +LL | (a, b) = (3, 4); |
| 5 | + | ------^^^^^^^^^ |
| 6 | + | | |
| 7 | + | cannot assign to this expression |
| 8 | + | |
| 9 | + = note: destructuring assignments are not yet supported |
| 10 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 11 | + |
| 12 | +error[E0368]: binary assignment operation `+=` cannot be applied to type `({integer}, {integer})` |
| 13 | + --> $DIR/destructuring-assignment.rs:7:5 |
| 14 | + | |
| 15 | +LL | (a, b) += (3, 4); |
| 16 | + | ------^^^^^^^^^^ |
| 17 | + | | |
| 18 | + | cannot use `+=` on type `({integer}, {integer})` |
| 19 | + | |
| 20 | + = note: an implementation of `std::ops::AddAssign` might be missing for `({integer}, {integer})` |
| 21 | + |
| 22 | +error[E0067]: invalid left-hand side of assignment |
| 23 | + --> $DIR/destructuring-assignment.rs:7:12 |
| 24 | + | |
| 25 | +LL | (a, b) += (3, 4); |
| 26 | + | ------ ^^ |
| 27 | + | | |
| 28 | + | cannot assign to this expression |
| 29 | + | |
| 30 | + = note: destructuring assignments are not yet supported |
| 31 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 32 | + |
| 33 | +error[E0070]: invalid left-hand side of assignment |
| 34 | + --> $DIR/destructuring-assignment.rs:10:5 |
| 35 | + | |
| 36 | +LL | [a, b] = [3, 4]; |
| 37 | + | ------^^^^^^^^^ |
| 38 | + | | |
| 39 | + | cannot assign to this expression |
| 40 | + | |
| 41 | + = note: destructuring assignments are not yet supported |
| 42 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 43 | + |
| 44 | +error[E0368]: binary assignment operation `+=` cannot be applied to type `[{integer}; 2]` |
| 45 | + --> $DIR/destructuring-assignment.rs:11:5 |
| 46 | + | |
| 47 | +LL | [a, b] += [3, 4]; |
| 48 | + | ------^^^^^^^^^^ |
| 49 | + | | |
| 50 | + | cannot use `+=` on type `[{integer}; 2]` |
| 51 | + | |
| 52 | + = note: an implementation of `std::ops::AddAssign` might be missing for `[{integer}; 2]` |
| 53 | + |
| 54 | +error[E0067]: invalid left-hand side of assignment |
| 55 | + --> $DIR/destructuring-assignment.rs:11:12 |
| 56 | + | |
| 57 | +LL | [a, b] += [3, 4]; |
| 58 | + | ------ ^^ |
| 59 | + | | |
| 60 | + | cannot assign to this expression |
| 61 | + | |
| 62 | + = note: destructuring assignments are not yet supported |
| 63 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 64 | + |
| 65 | +error[E0070]: invalid left-hand side of assignment |
| 66 | + --> $DIR/destructuring-assignment.rs:16:5 |
| 67 | + | |
| 68 | +LL | S { x: a, y: b } = s; |
| 69 | + | ----------------^^^^ |
| 70 | + | | |
| 71 | + | cannot assign to this expression |
| 72 | + | |
| 73 | + = note: destructuring assignments are not yet supported |
| 74 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 75 | + |
| 76 | +error[E0368]: binary assignment operation `+=` cannot be applied to type `S` |
| 77 | + --> $DIR/destructuring-assignment.rs:17:5 |
| 78 | + | |
| 79 | +LL | S { x: a, y: b } += s; |
| 80 | + | ----------------^^^^^ |
| 81 | + | | |
| 82 | + | cannot use `+=` on type `S` |
| 83 | + | |
| 84 | + = note: an implementation of `std::ops::AddAssign` might be missing for `S` |
| 85 | + |
| 86 | +error[E0067]: invalid left-hand side of assignment |
| 87 | + --> $DIR/destructuring-assignment.rs:17:22 |
| 88 | + | |
| 89 | +LL | S { x: a, y: b } += s; |
| 90 | + | ---------------- ^^ |
| 91 | + | | |
| 92 | + | cannot assign to this expression |
| 93 | + | |
| 94 | + = note: destructuring assignments are not yet supported |
| 95 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 96 | + |
| 97 | +error[E0070]: invalid left-hand side of assignment |
| 98 | + --> $DIR/destructuring-assignment.rs:20:5 |
| 99 | + | |
| 100 | +LL | S { x: a, ..s } = S { x: 3, y: 4 }; |
| 101 | + | ---------------^^^^^^^^^^^^^^^^^^^ |
| 102 | + | | |
| 103 | + | cannot assign to this expression |
| 104 | + | |
| 105 | + = note: destructuring assignments are not yet supported |
| 106 | + = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 |
| 107 | + |
| 108 | +error: aborting due to 10 previous errors |
| 109 | + |
| 110 | +Some errors have detailed explanations: E0067, E0070, E0368. |
| 111 | +For more information about an error, try `rustc --explain E0067`. |
0 commit comments