@@ -7,7 +7,7 @@ LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
7
7
| consider adding a `Copy` constraint to this type argument
8
8
LL | lhs + rhs;
9
9
| --- value moved here
10
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
10
+ LL | drop(lhs);
11
11
| ^^^ value used here after move
12
12
13
13
error[E0382]: use of moved value: `rhs`
@@ -19,8 +19,8 @@ LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
19
19
| consider adding a `Copy` constraint to this type argument
20
20
LL | lhs + rhs;
21
21
| --- value moved here
22
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
23
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
22
+ LL | drop(lhs);
23
+ LL | drop(rhs);
24
24
| ^^^ value used here after move
25
25
26
26
error[E0382]: use of moved value: `lhs`
@@ -32,7 +32,7 @@ LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
32
32
| consider adding a `Copy` constraint to this type argument
33
33
LL | lhs - rhs;
34
34
| --- value moved here
35
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
35
+ LL | drop(lhs);
36
36
| ^^^ value used here after move
37
37
38
38
error[E0382]: use of moved value: `rhs`
@@ -44,8 +44,8 @@ LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
44
44
| consider adding a `Copy` constraint to this type argument
45
45
LL | lhs - rhs;
46
46
| --- value moved here
47
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
48
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
47
+ LL | drop(lhs);
48
+ LL | drop(rhs);
49
49
| ^^^ value used here after move
50
50
51
51
error[E0382]: use of moved value: `lhs`
@@ -57,7 +57,7 @@ LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
57
57
| consider adding a `Copy` constraint to this type argument
58
58
LL | lhs * rhs;
59
59
| --- value moved here
60
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
60
+ LL | drop(lhs);
61
61
| ^^^ value used here after move
62
62
63
63
error[E0382]: use of moved value: `rhs`
@@ -69,8 +69,8 @@ LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
69
69
| consider adding a `Copy` constraint to this type argument
70
70
LL | lhs * rhs;
71
71
| --- value moved here
72
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
73
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
72
+ LL | drop(lhs);
73
+ LL | drop(rhs);
74
74
| ^^^ value used here after move
75
75
76
76
error[E0382]: use of moved value: `lhs`
@@ -82,7 +82,7 @@ LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
82
82
| consider adding a `Copy` constraint to this type argument
83
83
LL | lhs / rhs;
84
84
| --- value moved here
85
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
85
+ LL | drop(lhs);
86
86
| ^^^ value used here after move
87
87
88
88
error[E0382]: use of moved value: `rhs`
@@ -94,8 +94,8 @@ LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
94
94
| consider adding a `Copy` constraint to this type argument
95
95
LL | lhs / rhs;
96
96
| --- value moved here
97
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
98
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
97
+ LL | drop(lhs);
98
+ LL | drop(rhs);
99
99
| ^^^ value used here after move
100
100
101
101
error[E0382]: use of moved value: `lhs`
@@ -107,7 +107,7 @@ LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
107
107
| consider adding a `Copy` constraint to this type argument
108
108
LL | lhs % rhs;
109
109
| --- value moved here
110
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
110
+ LL | drop(lhs);
111
111
| ^^^ value used here after move
112
112
113
113
error[E0382]: use of moved value: `rhs`
@@ -119,8 +119,8 @@ LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
119
119
| consider adding a `Copy` constraint to this type argument
120
120
LL | lhs % rhs;
121
121
| --- value moved here
122
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
123
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
122
+ LL | drop(lhs);
123
+ LL | drop(rhs);
124
124
| ^^^ value used here after move
125
125
126
126
error[E0382]: use of moved value: `lhs`
@@ -132,7 +132,7 @@ LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
132
132
| consider adding a `Copy` constraint to this type argument
133
133
LL | lhs & rhs;
134
134
| --- value moved here
135
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
135
+ LL | drop(lhs);
136
136
| ^^^ value used here after move
137
137
138
138
error[E0382]: use of moved value: `rhs`
@@ -144,8 +144,8 @@ LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
144
144
| consider adding a `Copy` constraint to this type argument
145
145
LL | lhs & rhs;
146
146
| --- value moved here
147
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
148
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
147
+ LL | drop(lhs);
148
+ LL | drop(rhs);
149
149
| ^^^ value used here after move
150
150
151
151
error[E0382]: use of moved value: `lhs`
@@ -157,7 +157,7 @@ LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
157
157
| consider adding a `Copy` constraint to this type argument
158
158
LL | lhs | rhs;
159
159
| --- value moved here
160
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
160
+ LL | drop(lhs);
161
161
| ^^^ value used here after move
162
162
163
163
error[E0382]: use of moved value: `rhs`
@@ -169,8 +169,8 @@ LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
169
169
| consider adding a `Copy` constraint to this type argument
170
170
LL | lhs | rhs;
171
171
| --- value moved here
172
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
173
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
172
+ LL | drop(lhs);
173
+ LL | drop(rhs);
174
174
| ^^^ value used here after move
175
175
176
176
error[E0382]: use of moved value: `lhs`
@@ -182,7 +182,7 @@ LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
182
182
| consider adding a `Copy` constraint to this type argument
183
183
LL | lhs ^ rhs;
184
184
| --- value moved here
185
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
185
+ LL | drop(lhs);
186
186
| ^^^ value used here after move
187
187
188
188
error[E0382]: use of moved value: `rhs`
@@ -194,8 +194,8 @@ LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
194
194
| consider adding a `Copy` constraint to this type argument
195
195
LL | lhs ^ rhs;
196
196
| --- value moved here
197
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
198
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
197
+ LL | drop(lhs);
198
+ LL | drop(rhs);
199
199
| ^^^ value used here after move
200
200
201
201
error[E0382]: use of moved value: `lhs`
@@ -207,7 +207,7 @@ LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
207
207
| consider adding a `Copy` constraint to this type argument
208
208
LL | lhs << rhs;
209
209
| --- value moved here
210
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
210
+ LL | drop(lhs);
211
211
| ^^^ value used here after move
212
212
213
213
error[E0382]: use of moved value: `rhs`
@@ -219,8 +219,8 @@ LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
219
219
| consider adding a `Copy` constraint to this type argument
220
220
LL | lhs << rhs;
221
221
| --- value moved here
222
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
223
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
222
+ LL | drop(lhs);
223
+ LL | drop(rhs);
224
224
| ^^^ value used here after move
225
225
226
226
error[E0382]: use of moved value: `lhs`
@@ -232,7 +232,7 @@ LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
232
232
| consider adding a `Copy` constraint to this type argument
233
233
LL | lhs >> rhs;
234
234
| --- value moved here
235
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
235
+ LL | drop(lhs);
236
236
| ^^^ value used here after move
237
237
238
238
error[E0382]: use of moved value: `rhs`
@@ -244,8 +244,8 @@ LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
244
244
| consider adding a `Copy` constraint to this type argument
245
245
LL | lhs >> rhs;
246
246
| --- value moved here
247
- LL | drop(lhs); //~ ERROR use of moved value: `lhs`
248
- LL | drop(rhs); //~ ERROR use of moved value: `rhs`
247
+ LL | drop(lhs);
248
+ LL | drop(rhs);
249
249
| ^^^ value used here after move
250
250
251
251
error: aborting due to 20 previous errors
0 commit comments