11error[E0382]: use of moved value: `lhs`
2- --> $DIR/binop-consume-args.rs:7 :10
2+ --> $DIR/binop-consume-args.rs:8 :10
33 |
44LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
55 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -9,7 +9,7 @@ LL | drop(lhs);
99 | ^^^ value used here after move
1010 |
1111help: if `A` implemented `Clone`, you could clone the value
12- --> $DIR/binop-consume-args.rs:5 :8
12+ --> $DIR/binop-consume-args.rs:6 :8
1313 |
1414LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
1515 | ^ consider constraining this type parameter with `Clone`
@@ -23,7 +23,7 @@ LL | fn add<A: Add<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
2323 | ++++++
2424
2525error[E0382]: use of moved value: `rhs`
26- --> $DIR/binop-consume-args.rs:8 :10
26+ --> $DIR/binop-consume-args.rs:9 :10
2727 |
2828LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
2929 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -34,7 +34,7 @@ LL | drop(rhs);
3434 | ^^^ value used here after move
3535 |
3636help: if `B` implemented `Clone`, you could clone the value
37- --> $DIR/binop-consume-args.rs:5 :30
37+ --> $DIR/binop-consume-args.rs:6 :30
3838 |
3939LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
4040 | ^ consider constraining this type parameter with `Clone`
@@ -46,7 +46,7 @@ LL | fn add<A: Add<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
4646 | ++++++
4747
4848error[E0382]: use of moved value: `lhs`
49- --> $DIR/binop-consume-args.rs:13 :10
49+ --> $DIR/binop-consume-args.rs:14 :10
5050 |
5151LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
5252 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -56,7 +56,7 @@ LL | drop(lhs);
5656 | ^^^ value used here after move
5757 |
5858help: if `A` implemented `Clone`, you could clone the value
59- --> $DIR/binop-consume-args.rs:11 :8
59+ --> $DIR/binop-consume-args.rs:12 :8
6060 |
6161LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
6262 | ^ consider constraining this type parameter with `Clone`
@@ -70,7 +70,7 @@ LL | fn sub<A: Sub<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
7070 | ++++++
7171
7272error[E0382]: use of moved value: `rhs`
73- --> $DIR/binop-consume-args.rs:14 :10
73+ --> $DIR/binop-consume-args.rs:15 :10
7474 |
7575LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
7676 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -81,7 +81,7 @@ LL | drop(rhs);
8181 | ^^^ value used here after move
8282 |
8383help: if `B` implemented `Clone`, you could clone the value
84- --> $DIR/binop-consume-args.rs:11 :30
84+ --> $DIR/binop-consume-args.rs:12 :30
8585 |
8686LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
8787 | ^ consider constraining this type parameter with `Clone`
@@ -93,7 +93,7 @@ LL | fn sub<A: Sub<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
9393 | ++++++
9494
9595error[E0382]: use of moved value: `lhs`
96- --> $DIR/binop-consume-args.rs:19 :10
96+ --> $DIR/binop-consume-args.rs:20 :10
9797 |
9898LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
9999 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -103,7 +103,7 @@ LL | drop(lhs);
103103 | ^^^ value used here after move
104104 |
105105help: if `A` implemented `Clone`, you could clone the value
106- --> $DIR/binop-consume-args.rs:17 :8
106+ --> $DIR/binop-consume-args.rs:18 :8
107107 |
108108LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
109109 | ^ consider constraining this type parameter with `Clone`
@@ -117,7 +117,7 @@ LL | fn mul<A: Mul<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
117117 | ++++++
118118
119119error[E0382]: use of moved value: `rhs`
120- --> $DIR/binop-consume-args.rs:20 :10
120+ --> $DIR/binop-consume-args.rs:21 :10
121121 |
122122LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
123123 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -128,7 +128,7 @@ LL | drop(rhs);
128128 | ^^^ value used here after move
129129 |
130130help: if `B` implemented `Clone`, you could clone the value
131- --> $DIR/binop-consume-args.rs:17 :30
131+ --> $DIR/binop-consume-args.rs:18 :30
132132 |
133133LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
134134 | ^ consider constraining this type parameter with `Clone`
@@ -140,7 +140,7 @@ LL | fn mul<A: Mul<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
140140 | ++++++
141141
142142error[E0382]: use of moved value: `lhs`
143- --> $DIR/binop-consume-args.rs:25 :10
143+ --> $DIR/binop-consume-args.rs:26 :10
144144 |
145145LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
146146 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -150,7 +150,7 @@ LL | drop(lhs);
150150 | ^^^ value used here after move
151151 |
152152help: if `A` implemented `Clone`, you could clone the value
153- --> $DIR/binop-consume-args.rs:23 :8
153+ --> $DIR/binop-consume-args.rs:24 :8
154154 |
155155LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
156156 | ^ consider constraining this type parameter with `Clone`
@@ -164,7 +164,7 @@ LL | fn div<A: Div<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
164164 | ++++++
165165
166166error[E0382]: use of moved value: `rhs`
167- --> $DIR/binop-consume-args.rs:26 :10
167+ --> $DIR/binop-consume-args.rs:27 :10
168168 |
169169LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
170170 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -175,7 +175,7 @@ LL | drop(rhs);
175175 | ^^^ value used here after move
176176 |
177177help: if `B` implemented `Clone`, you could clone the value
178- --> $DIR/binop-consume-args.rs:23 :30
178+ --> $DIR/binop-consume-args.rs:24 :30
179179 |
180180LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
181181 | ^ consider constraining this type parameter with `Clone`
@@ -187,7 +187,7 @@ LL | fn div<A: Div<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
187187 | ++++++
188188
189189error[E0382]: use of moved value: `lhs`
190- --> $DIR/binop-consume-args.rs:31 :10
190+ --> $DIR/binop-consume-args.rs:32 :10
191191 |
192192LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
193193 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -197,7 +197,7 @@ LL | drop(lhs);
197197 | ^^^ value used here after move
198198 |
199199help: if `A` implemented `Clone`, you could clone the value
200- --> $DIR/binop-consume-args.rs:29 :8
200+ --> $DIR/binop-consume-args.rs:30 :8
201201 |
202202LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
203203 | ^ consider constraining this type parameter with `Clone`
@@ -211,7 +211,7 @@ LL | fn rem<A: Rem<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
211211 | ++++++
212212
213213error[E0382]: use of moved value: `rhs`
214- --> $DIR/binop-consume-args.rs:32 :10
214+ --> $DIR/binop-consume-args.rs:33 :10
215215 |
216216LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
217217 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -222,7 +222,7 @@ LL | drop(rhs);
222222 | ^^^ value used here after move
223223 |
224224help: if `B` implemented `Clone`, you could clone the value
225- --> $DIR/binop-consume-args.rs:29 :30
225+ --> $DIR/binop-consume-args.rs:30 :30
226226 |
227227LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
228228 | ^ consider constraining this type parameter with `Clone`
@@ -234,7 +234,7 @@ LL | fn rem<A: Rem<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
234234 | ++++++
235235
236236error[E0382]: use of moved value: `lhs`
237- --> $DIR/binop-consume-args.rs:37 :10
237+ --> $DIR/binop-consume-args.rs:38 :10
238238 |
239239LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
240240 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -244,7 +244,7 @@ LL | drop(lhs);
244244 | ^^^ value used here after move
245245 |
246246help: if `A` implemented `Clone`, you could clone the value
247- --> $DIR/binop-consume-args.rs:35 :11
247+ --> $DIR/binop-consume-args.rs:36 :11
248248 |
249249LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
250250 | ^ consider constraining this type parameter with `Clone`
@@ -258,7 +258,7 @@ LL | fn bitand<A: BitAnd<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
258258 | ++++++
259259
260260error[E0382]: use of moved value: `rhs`
261- --> $DIR/binop-consume-args.rs:38 :10
261+ --> $DIR/binop-consume-args.rs:39 :10
262262 |
263263LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
264264 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -269,7 +269,7 @@ LL | drop(rhs);
269269 | ^^^ value used here after move
270270 |
271271help: if `B` implemented `Clone`, you could clone the value
272- --> $DIR/binop-consume-args.rs:35 :36
272+ --> $DIR/binop-consume-args.rs:36 :36
273273 |
274274LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
275275 | ^ consider constraining this type parameter with `Clone`
@@ -281,7 +281,7 @@ LL | fn bitand<A: BitAnd<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
281281 | ++++++
282282
283283error[E0382]: use of moved value: `lhs`
284- --> $DIR/binop-consume-args.rs:43 :10
284+ --> $DIR/binop-consume-args.rs:44 :10
285285 |
286286LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
287287 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -291,7 +291,7 @@ LL | drop(lhs);
291291 | ^^^ value used here after move
292292 |
293293help: if `A` implemented `Clone`, you could clone the value
294- --> $DIR/binop-consume-args.rs:41 :10
294+ --> $DIR/binop-consume-args.rs:42 :10
295295 |
296296LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
297297 | ^ consider constraining this type parameter with `Clone`
@@ -305,7 +305,7 @@ LL | fn bitor<A: BitOr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
305305 | ++++++
306306
307307error[E0382]: use of moved value: `rhs`
308- --> $DIR/binop-consume-args.rs:44 :10
308+ --> $DIR/binop-consume-args.rs:45 :10
309309 |
310310LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
311311 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -316,7 +316,7 @@ LL | drop(rhs);
316316 | ^^^ value used here after move
317317 |
318318help: if `B` implemented `Clone`, you could clone the value
319- --> $DIR/binop-consume-args.rs:41 :34
319+ --> $DIR/binop-consume-args.rs:42 :34
320320 |
321321LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
322322 | ^ consider constraining this type parameter with `Clone`
@@ -328,7 +328,7 @@ LL | fn bitor<A: BitOr<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
328328 | ++++++
329329
330330error[E0382]: use of moved value: `lhs`
331- --> $DIR/binop-consume-args.rs:49 :10
331+ --> $DIR/binop-consume-args.rs:50 :10
332332 |
333333LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
334334 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -338,7 +338,7 @@ LL | drop(lhs);
338338 | ^^^ value used here after move
339339 |
340340help: if `A` implemented `Clone`, you could clone the value
341- --> $DIR/binop-consume-args.rs:47 :11
341+ --> $DIR/binop-consume-args.rs:48 :11
342342 |
343343LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
344344 | ^ consider constraining this type parameter with `Clone`
@@ -352,7 +352,7 @@ LL | fn bitxor<A: BitXor<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
352352 | ++++++
353353
354354error[E0382]: use of moved value: `rhs`
355- --> $DIR/binop-consume-args.rs:50 :10
355+ --> $DIR/binop-consume-args.rs:51 :10
356356 |
357357LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
358358 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -363,7 +363,7 @@ LL | drop(rhs);
363363 | ^^^ value used here after move
364364 |
365365help: if `B` implemented `Clone`, you could clone the value
366- --> $DIR/binop-consume-args.rs:47 :36
366+ --> $DIR/binop-consume-args.rs:48 :36
367367 |
368368LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
369369 | ^ consider constraining this type parameter with `Clone`
@@ -375,7 +375,7 @@ LL | fn bitxor<A: BitXor<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
375375 | ++++++
376376
377377error[E0382]: use of moved value: `lhs`
378- --> $DIR/binop-consume-args.rs:55 :10
378+ --> $DIR/binop-consume-args.rs:56 :10
379379 |
380380LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
381381 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -385,7 +385,7 @@ LL | drop(lhs);
385385 | ^^^ value used here after move
386386 |
387387help: if `A` implemented `Clone`, you could clone the value
388- --> $DIR/binop-consume-args.rs:53 :8
388+ --> $DIR/binop-consume-args.rs:54 :8
389389 |
390390LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
391391 | ^ consider constraining this type parameter with `Clone`
@@ -399,7 +399,7 @@ LL | fn shl<A: Shl<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
399399 | ++++++
400400
401401error[E0382]: use of moved value: `rhs`
402- --> $DIR/binop-consume-args.rs:56 :10
402+ --> $DIR/binop-consume-args.rs:57 :10
403403 |
404404LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
405405 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -410,7 +410,7 @@ LL | drop(rhs);
410410 | ^^^ value used here after move
411411 |
412412help: if `B` implemented `Clone`, you could clone the value
413- --> $DIR/binop-consume-args.rs:53 :30
413+ --> $DIR/binop-consume-args.rs:54 :30
414414 |
415415LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
416416 | ^ consider constraining this type parameter with `Clone`
@@ -422,7 +422,7 @@ LL | fn shl<A: Shl<B, Output=()>, B: Copy>(lhs: A, rhs: B) {
422422 | ++++++
423423
424424error[E0382]: use of moved value: `lhs`
425- --> $DIR/binop-consume-args.rs:61 :10
425+ --> $DIR/binop-consume-args.rs:62 :10
426426 |
427427LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
428428 | --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
@@ -432,7 +432,7 @@ LL | drop(lhs);
432432 | ^^^ value used here after move
433433 |
434434help: if `A` implemented `Clone`, you could clone the value
435- --> $DIR/binop-consume-args.rs:59 :8
435+ --> $DIR/binop-consume-args.rs:60 :8
436436 |
437437LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
438438 | ^ consider constraining this type parameter with `Clone`
@@ -446,7 +446,7 @@ LL | fn shr<A: Shr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
446446 | ++++++
447447
448448error[E0382]: use of moved value: `rhs`
449- --> $DIR/binop-consume-args.rs:62 :10
449+ --> $DIR/binop-consume-args.rs:63 :10
450450 |
451451LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
452452 | --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
@@ -457,7 +457,7 @@ LL | drop(rhs);
457457 | ^^^ value used here after move
458458 |
459459help: if `B` implemented `Clone`, you could clone the value
460- --> $DIR/binop-consume-args.rs:59 :30
460+ --> $DIR/binop-consume-args.rs:60 :30
461461 |
462462LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
463463 | ^ consider constraining this type parameter with `Clone`
0 commit comments