@@ -2,9 +2,9 @@ error[E0382]: use of moved value: `lhs`
2
2
--> $DIR/binop-consume-args.rs:7:10
3
3
|
4
4
LL | 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
6
6
| |
7
- | consider adding a `Copy` constraint to this type argument
7
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
8
8
LL | lhs + rhs;
9
9
| --- value moved here
10
10
LL | drop(lhs);
@@ -16,7 +16,7 @@ error[E0382]: use of moved value: `rhs`
16
16
LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
17
17
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
18
18
| |
19
- | consider adding a `Copy` constraint to this type argument
19
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
20
20
LL | lhs + rhs;
21
21
| --- value moved here
22
22
LL | drop(lhs);
@@ -27,9 +27,9 @@ error[E0382]: use of moved value: `lhs`
27
27
--> $DIR/binop-consume-args.rs:13:10
28
28
|
29
29
LL | 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
31
31
| |
32
- | consider adding a `Copy` constraint to this type argument
32
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
33
33
LL | lhs - rhs;
34
34
| --- value moved here
35
35
LL | drop(lhs);
@@ -41,7 +41,7 @@ error[E0382]: use of moved value: `rhs`
41
41
LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
42
42
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
43
43
| |
44
- | consider adding a `Copy` constraint to this type argument
44
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
45
45
LL | lhs - rhs;
46
46
| --- value moved here
47
47
LL | drop(lhs);
@@ -52,9 +52,9 @@ error[E0382]: use of moved value: `lhs`
52
52
--> $DIR/binop-consume-args.rs:19:10
53
53
|
54
54
LL | 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
56
56
| |
57
- | consider adding a `Copy` constraint to this type argument
57
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
58
58
LL | lhs * rhs;
59
59
| --- value moved here
60
60
LL | drop(lhs);
@@ -66,7 +66,7 @@ error[E0382]: use of moved value: `rhs`
66
66
LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
67
67
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
68
68
| |
69
- | consider adding a `Copy` constraint to this type argument
69
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
70
70
LL | lhs * rhs;
71
71
| --- value moved here
72
72
LL | drop(lhs);
@@ -77,9 +77,9 @@ error[E0382]: use of moved value: `lhs`
77
77
--> $DIR/binop-consume-args.rs:25:10
78
78
|
79
79
LL | 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
81
81
| |
82
- | consider adding a `Copy` constraint to this type argument
82
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
83
83
LL | lhs / rhs;
84
84
| --- value moved here
85
85
LL | drop(lhs);
@@ -91,7 +91,7 @@ error[E0382]: use of moved value: `rhs`
91
91
LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
92
92
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
93
93
| |
94
- | consider adding a `Copy` constraint to this type argument
94
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
95
95
LL | lhs / rhs;
96
96
| --- value moved here
97
97
LL | drop(lhs);
@@ -102,9 +102,9 @@ error[E0382]: use of moved value: `lhs`
102
102
--> $DIR/binop-consume-args.rs:31:10
103
103
|
104
104
LL | 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
106
106
| |
107
- | consider adding a `Copy` constraint to this type argument
107
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
108
108
LL | lhs % rhs;
109
109
| --- value moved here
110
110
LL | drop(lhs);
@@ -116,7 +116,7 @@ error[E0382]: use of moved value: `rhs`
116
116
LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
117
117
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
118
118
| |
119
- | consider adding a `Copy` constraint to this type argument
119
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
120
120
LL | lhs % rhs;
121
121
| --- value moved here
122
122
LL | drop(lhs);
@@ -127,9 +127,9 @@ error[E0382]: use of moved value: `lhs`
127
127
--> $DIR/binop-consume-args.rs:37:10
128
128
|
129
129
LL | 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
131
131
| |
132
- | consider adding a `Copy` constraint to this type argument
132
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
133
133
LL | lhs & rhs;
134
134
| --- value moved here
135
135
LL | drop(lhs);
@@ -141,7 +141,7 @@ error[E0382]: use of moved value: `rhs`
141
141
LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
142
142
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
143
143
| |
144
- | consider adding a `Copy` constraint to this type argument
144
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
145
145
LL | lhs & rhs;
146
146
| --- value moved here
147
147
LL | drop(lhs);
@@ -152,9 +152,9 @@ error[E0382]: use of moved value: `lhs`
152
152
--> $DIR/binop-consume-args.rs:43:10
153
153
|
154
154
LL | 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
156
156
| |
157
- | consider adding a `Copy` constraint to this type argument
157
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
158
158
LL | lhs | rhs;
159
159
| --- value moved here
160
160
LL | drop(lhs);
@@ -166,7 +166,7 @@ error[E0382]: use of moved value: `rhs`
166
166
LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
167
167
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
168
168
| |
169
- | consider adding a `Copy` constraint to this type argument
169
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
170
170
LL | lhs | rhs;
171
171
| --- value moved here
172
172
LL | drop(lhs);
@@ -177,9 +177,9 @@ error[E0382]: use of moved value: `lhs`
177
177
--> $DIR/binop-consume-args.rs:49:10
178
178
|
179
179
LL | 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
181
181
| |
182
- | consider adding a `Copy` constraint to this type argument
182
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
183
183
LL | lhs ^ rhs;
184
184
| --- value moved here
185
185
LL | drop(lhs);
@@ -191,7 +191,7 @@ error[E0382]: use of moved value: `rhs`
191
191
LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
192
192
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
193
193
| |
194
- | consider adding a `Copy` constraint to this type argument
194
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
195
195
LL | lhs ^ rhs;
196
196
| --- value moved here
197
197
LL | drop(lhs);
@@ -202,9 +202,9 @@ error[E0382]: use of moved value: `lhs`
202
202
--> $DIR/binop-consume-args.rs:55:10
203
203
|
204
204
LL | 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
206
206
| |
207
- | consider adding a `Copy` constraint to this type argument
207
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
208
208
LL | lhs << rhs;
209
209
| --- value moved here
210
210
LL | drop(lhs);
@@ -216,7 +216,7 @@ error[E0382]: use of moved value: `rhs`
216
216
LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
217
217
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
218
218
| |
219
- | consider adding a `Copy` constraint to this type argument
219
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
220
220
LL | lhs << rhs;
221
221
| --- value moved here
222
222
LL | drop(lhs);
@@ -227,9 +227,9 @@ error[E0382]: use of moved value: `lhs`
227
227
--> $DIR/binop-consume-args.rs:61:10
228
228
|
229
229
LL | 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
231
231
| |
232
- | consider adding a `Copy` constraint to this type argument
232
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
233
233
LL | lhs >> rhs;
234
234
| --- value moved here
235
235
LL | drop(lhs);
@@ -241,7 +241,7 @@ error[E0382]: use of moved value: `rhs`
241
241
LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
242
242
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
243
243
| |
244
- | consider adding a `Copy` constraint to this type argument
244
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
245
245
LL | lhs >> rhs;
246
246
| --- value moved here
247
247
LL | drop(lhs);
0 commit comments