fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
3.9 KiB122 linesraw
1error[E0070]: invalid left-hand side of assignment
2  --> $DIR/note-unsupported.rs:6:12
3   |
4LL |     (a, b) = (3, 4);
5   |     ------ ^
6   |     |
7   |     cannot assign to this expression
8   |
9   = note: destructuring assignments are not currently supported
10   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
11
12error[E0368]: binary assignment operation `+=` cannot be applied to type `({integer}, {integer})`
13  --> $DIR/note-unsupported.rs:7:5
14   |
15LL |     (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
22error[E0067]: invalid left-hand side of assignment
23  --> $DIR/note-unsupported.rs:7:12
24   |
25LL |     (a, b) += (3, 4);
26   |     ------ ^^
27   |     |
28   |     cannot assign to this expression
29   |
30   = note: destructuring assignments are not currently supported
31   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
32
33error[E0070]: invalid left-hand side of assignment
34  --> $DIR/note-unsupported.rs:10:12
35   |
36LL |     [a, b] = [3, 4];
37   |     ------ ^
38   |     |
39   |     cannot assign to this expression
40   |
41   = note: destructuring assignments are not currently supported
42   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
43
44error[E0368]: binary assignment operation `+=` cannot be applied to type `[{integer}; 2]`
45  --> $DIR/note-unsupported.rs:11:5
46   |
47LL |     [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
54error[E0067]: invalid left-hand side of assignment
55  --> $DIR/note-unsupported.rs:11:12
56   |
57LL |     [a, b] += [3, 4];
58   |     ------ ^^
59   |     |
60   |     cannot assign to this expression
61   |
62   = note: destructuring assignments are not currently supported
63   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
64
65error[E0070]: invalid left-hand side of assignment
66  --> $DIR/note-unsupported.rs:16:22
67   |
68LL |     S { x: a, y: b } = s;
69   |     ---------------- ^
70   |     |
71   |     cannot assign to this expression
72   |
73   = note: destructuring assignments are not currently supported
74   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
75
76error[E0368]: binary assignment operation `+=` cannot be applied to type `S`
77  --> $DIR/note-unsupported.rs:17:5
78   |
79LL |     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
86error[E0067]: invalid left-hand side of assignment
87  --> $DIR/note-unsupported.rs:17:22
88   |
89LL |     S { x: a, y: b } += s;
90   |     ---------------- ^^
91   |     |
92   |     cannot assign to this expression
93   |
94   = note: destructuring assignments are not currently supported
95   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
96
97error[E0070]: invalid left-hand side of assignment
98  --> $DIR/note-unsupported.rs:20:21
99   |
100LL |     S { x: a, ..s } = S { x: 3, y: 4 };
101   |     --------------- ^
102   |     |
103   |     cannot assign to this expression
104   |
105   = note: destructuring assignments are not currently supported
106   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
107
108error[E0070]: invalid left-hand side of assignment
109  --> $DIR/note-unsupported.rs:24:17
110   |
111LL |     ((a, b), c) = ((3, 4), 5);
112   |     ----------- ^
113   |     |
114   |     cannot assign to this expression
115   |
116   = note: destructuring assignments are not currently supported
117   = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
118
119error: aborting due to 11 previous errors
120
121Some errors have detailed explanations: E0067, E0070, E0368.
122For more information about an error, try `rustc --explain E0067`.