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