fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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