@@ -9,10 +9,7 @@ LL | drop(lhs);
9
9
| ^^^ value used here after move
10
10
|
11
11
note: calling this operator moves the left-hand side
12
- --> $DIR/binop-consume-args.rs:6:5
13
- |
14
- LL | lhs + rhs;
15
- | ^^^^^^^^^
12
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
16
13
help: consider further restricting this bound
17
14
|
18
15
LL | fn add<A: Add<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -45,10 +42,7 @@ LL | drop(lhs);
45
42
| ^^^ value used here after move
46
43
|
47
44
note: calling this operator moves the left-hand side
48
- --> $DIR/binop-consume-args.rs:12:5
49
- |
50
- LL | lhs - rhs;
51
- | ^^^^^^^^^
45
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
52
46
help: consider further restricting this bound
53
47
|
54
48
LL | fn sub<A: Sub<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -81,10 +75,7 @@ LL | drop(lhs);
81
75
| ^^^ value used here after move
82
76
|
83
77
note: calling this operator moves the left-hand side
84
- --> $DIR/binop-consume-args.rs:18:5
85
- |
86
- LL | lhs * rhs;
87
- | ^^^^^^^^^
78
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
88
79
help: consider further restricting this bound
89
80
|
90
81
LL | fn mul<A: Mul<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -117,10 +108,7 @@ LL | drop(lhs);
117
108
| ^^^ value used here after move
118
109
|
119
110
note: calling this operator moves the left-hand side
120
- --> $DIR/binop-consume-args.rs:24:5
121
- |
122
- LL | lhs / rhs;
123
- | ^^^^^^^^^
111
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
124
112
help: consider further restricting this bound
125
113
|
126
114
LL | fn div<A: Div<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -153,10 +141,7 @@ LL | drop(lhs);
153
141
| ^^^ value used here after move
154
142
|
155
143
note: calling this operator moves the left-hand side
156
- --> $DIR/binop-consume-args.rs:30:5
157
- |
158
- LL | lhs % rhs;
159
- | ^^^^^^^^^
144
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
160
145
help: consider further restricting this bound
161
146
|
162
147
LL | fn rem<A: Rem<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -189,10 +174,7 @@ LL | drop(lhs);
189
174
| ^^^ value used here after move
190
175
|
191
176
note: calling this operator moves the left-hand side
192
- --> $DIR/binop-consume-args.rs:36:5
193
- |
194
- LL | lhs & rhs;
195
- | ^^^^^^^^^
177
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
196
178
help: consider further restricting this bound
197
179
|
198
180
LL | fn bitand<A: BitAnd<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -225,10 +207,7 @@ LL | drop(lhs);
225
207
| ^^^ value used here after move
226
208
|
227
209
note: calling this operator moves the left-hand side
228
- --> $DIR/binop-consume-args.rs:42:5
229
- |
230
- LL | lhs | rhs;
231
- | ^^^^^^^^^
210
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
232
211
help: consider further restricting this bound
233
212
|
234
213
LL | fn bitor<A: BitOr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -261,10 +240,7 @@ LL | drop(lhs);
261
240
| ^^^ value used here after move
262
241
|
263
242
note: calling this operator moves the left-hand side
264
- --> $DIR/binop-consume-args.rs:48:5
265
- |
266
- LL | lhs ^ rhs;
267
- | ^^^^^^^^^
243
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
268
244
help: consider further restricting this bound
269
245
|
270
246
LL | fn bitxor<A: BitXor<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -297,10 +273,7 @@ LL | drop(lhs);
297
273
| ^^^ value used here after move
298
274
|
299
275
note: calling this operator moves the left-hand side
300
- --> $DIR/binop-consume-args.rs:54:5
301
- |
302
- LL | lhs << rhs;
303
- | ^^^^^^^^^^
276
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
304
277
help: consider further restricting this bound
305
278
|
306
279
LL | fn shl<A: Shl<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -333,10 +306,7 @@ LL | drop(lhs);
333
306
| ^^^ value used here after move
334
307
|
335
308
note: calling this operator moves the left-hand side
336
- --> $DIR/binop-consume-args.rs:60:5
337
- |
338
- LL | lhs >> rhs;
339
- | ^^^^^^^^^^
309
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
340
310
help: consider further restricting this bound
341
311
|
342
312
LL | fn shr<A: Shr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
0 commit comments