@@ -9,10 +9,7 @@ LL | drop(lhs);
99 | ^^^ value used here after move
1010 |
1111note: 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
1613help: consider further restricting this bound
1714 |
1815LL | fn add<A: Add<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -45,10 +42,7 @@ LL | drop(lhs);
4542 | ^^^ value used here after move
4643 |
4744note: 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
5246help: consider further restricting this bound
5347 |
5448LL | fn sub<A: Sub<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -81,10 +75,7 @@ LL | drop(lhs);
8175 | ^^^ value used here after move
8276 |
8377note: 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
8879help: consider further restricting this bound
8980 |
9081LL | fn mul<A: Mul<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -117,10 +108,7 @@ LL | drop(lhs);
117108 | ^^^ value used here after move
118109 |
119110note: 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
124112help: consider further restricting this bound
125113 |
126114LL | fn div<A: Div<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -153,10 +141,7 @@ LL | drop(lhs);
153141 | ^^^ value used here after move
154142 |
155143note: 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
160145help: consider further restricting this bound
161146 |
162147LL | fn rem<A: Rem<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -189,10 +174,7 @@ LL | drop(lhs);
189174 | ^^^ value used here after move
190175 |
191176note: 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
196178help: consider further restricting this bound
197179 |
198180LL | fn bitand<A: BitAnd<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -225,10 +207,7 @@ LL | drop(lhs);
225207 | ^^^ value used here after move
226208 |
227209note: 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
232211help: consider further restricting this bound
233212 |
234213LL | fn bitor<A: BitOr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -261,10 +240,7 @@ LL | drop(lhs);
261240 | ^^^ value used here after move
262241 |
263242note: 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
268244help: consider further restricting this bound
269245 |
270246LL | fn bitxor<A: BitXor<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -297,10 +273,7 @@ LL | drop(lhs);
297273 | ^^^ value used here after move
298274 |
299275note: 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
304277help: consider further restricting this bound
305278 |
306279LL | fn shl<A: Shl<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
@@ -333,10 +306,7 @@ LL | drop(lhs);
333306 | ^^^ value used here after move
334307 |
335308note: 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
340310help: consider further restricting this bound
341311 |
342312LL | fn shr<A: Shr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
0 commit comments