@@ -2,9 +2,9 @@ error[E0382]: use of moved value: `lhs`
22 --> $DIR/binop-consume-args.rs:7:10
33 |
44LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
5- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
5+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
66 | |
7- | consider adding a `Copy` constraint to this type argument
7+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
88LL | lhs + rhs;
99 | --- value moved here
1010LL | drop(lhs);
@@ -16,7 +16,7 @@ error[E0382]: use of moved value: `rhs`
1616LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
1717 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
1818 | |
19- | consider adding a `Copy` constraint to this type argument
19+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
2020LL | lhs + rhs;
2121 | --- value moved here
2222LL | drop(lhs);
@@ -27,9 +27,9 @@ error[E0382]: use of moved value: `lhs`
2727 --> $DIR/binop-consume-args.rs:13:10
2828 |
2929LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
30- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
30+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
3131 | |
32- | consider adding a `Copy` constraint to this type argument
32+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
3333LL | lhs - rhs;
3434 | --- value moved here
3535LL | drop(lhs);
@@ -41,7 +41,7 @@ error[E0382]: use of moved value: `rhs`
4141LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
4242 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
4343 | |
44- | consider adding a `Copy` constraint to this type argument
44+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
4545LL | lhs - rhs;
4646 | --- value moved here
4747LL | drop(lhs);
@@ -52,9 +52,9 @@ error[E0382]: use of moved value: `lhs`
5252 --> $DIR/binop-consume-args.rs:19:10
5353 |
5454LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
55- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
55+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
5656 | |
57- | consider adding a `Copy` constraint to this type argument
57+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
5858LL | lhs * rhs;
5959 | --- value moved here
6060LL | drop(lhs);
@@ -66,7 +66,7 @@ error[E0382]: use of moved value: `rhs`
6666LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
6767 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
6868 | |
69- | consider adding a `Copy` constraint to this type argument
69+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
7070LL | lhs * rhs;
7171 | --- value moved here
7272LL | drop(lhs);
@@ -77,9 +77,9 @@ error[E0382]: use of moved value: `lhs`
7777 --> $DIR/binop-consume-args.rs:25:10
7878 |
7979LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
80- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
80+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
8181 | |
82- | consider adding a `Copy` constraint to this type argument
82+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
8383LL | lhs / rhs;
8484 | --- value moved here
8585LL | drop(lhs);
@@ -91,7 +91,7 @@ error[E0382]: use of moved value: `rhs`
9191LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
9292 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
9393 | |
94- | consider adding a `Copy` constraint to this type argument
94+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
9595LL | lhs / rhs;
9696 | --- value moved here
9797LL | drop(lhs);
@@ -102,9 +102,9 @@ error[E0382]: use of moved value: `lhs`
102102 --> $DIR/binop-consume-args.rs:31:10
103103 |
104104LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
105- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
105+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
106106 | |
107- | consider adding a `Copy` constraint to this type argument
107+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
108108LL | lhs % rhs;
109109 | --- value moved here
110110LL | drop(lhs);
@@ -116,7 +116,7 @@ error[E0382]: use of moved value: `rhs`
116116LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
117117 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
118118 | |
119- | consider adding a `Copy` constraint to this type argument
119+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
120120LL | lhs % rhs;
121121 | --- value moved here
122122LL | drop(lhs);
@@ -127,9 +127,9 @@ error[E0382]: use of moved value: `lhs`
127127 --> $DIR/binop-consume-args.rs:37:10
128128 |
129129LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
130- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
130+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
131131 | |
132- | consider adding a `Copy` constraint to this type argument
132+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
133133LL | lhs & rhs;
134134 | --- value moved here
135135LL | drop(lhs);
@@ -141,7 +141,7 @@ error[E0382]: use of moved value: `rhs`
141141LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
142142 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
143143 | |
144- | consider adding a `Copy` constraint to this type argument
144+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
145145LL | lhs & rhs;
146146 | --- value moved here
147147LL | drop(lhs);
@@ -152,9 +152,9 @@ error[E0382]: use of moved value: `lhs`
152152 --> $DIR/binop-consume-args.rs:43:10
153153 |
154154LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
155- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
155+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
156156 | |
157- | consider adding a `Copy` constraint to this type argument
157+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
158158LL | lhs | rhs;
159159 | --- value moved here
160160LL | drop(lhs);
@@ -166,7 +166,7 @@ error[E0382]: use of moved value: `rhs`
166166LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
167167 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
168168 | |
169- | consider adding a `Copy` constraint to this type argument
169+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
170170LL | lhs | rhs;
171171 | --- value moved here
172172LL | drop(lhs);
@@ -177,9 +177,9 @@ error[E0382]: use of moved value: `lhs`
177177 --> $DIR/binop-consume-args.rs:49:10
178178 |
179179LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
180- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
180+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
181181 | |
182- | consider adding a `Copy` constraint to this type argument
182+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
183183LL | lhs ^ rhs;
184184 | --- value moved here
185185LL | drop(lhs);
@@ -191,7 +191,7 @@ error[E0382]: use of moved value: `rhs`
191191LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
192192 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
193193 | |
194- | consider adding a `Copy` constraint to this type argument
194+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
195195LL | lhs ^ rhs;
196196 | --- value moved here
197197LL | drop(lhs);
@@ -202,9 +202,9 @@ error[E0382]: use of moved value: `lhs`
202202 --> $DIR/binop-consume-args.rs:55:10
203203 |
204204LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
205- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
205+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
206206 | |
207- | consider adding a `Copy` constraint to this type argument
207+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
208208LL | lhs << rhs;
209209 | --- value moved here
210210LL | drop(lhs);
@@ -216,7 +216,7 @@ error[E0382]: use of moved value: `rhs`
216216LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
217217 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
218218 | |
219- | consider adding a `Copy` constraint to this type argument
219+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
220220LL | lhs << rhs;
221221 | --- value moved here
222222LL | drop(lhs);
@@ -227,9 +227,9 @@ error[E0382]: use of moved value: `lhs`
227227 --> $DIR/binop-consume-args.rs:61:10
228228 |
229229LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
230- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
230+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
231231 | |
232- | consider adding a `Copy` constraint to this type argument
232+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
233233LL | lhs >> rhs;
234234 | --- value moved here
235235LL | drop(lhs);
@@ -241,7 +241,7 @@ error[E0382]: use of moved value: `rhs`
241241LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
242242 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
243243 | |
244- | consider adding a `Copy` constraint to this type argument
244+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
245245LL | lhs >> rhs;
246246 | --- value moved here
247247LL | drop(lhs);
0 commit comments