| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:6:5
- |
-LL | lhs + rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
help: consider further restricting this bound
|
LL | fn add<A: Add<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:12:5
- |
-LL | lhs - rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
help: consider further restricting this bound
|
LL | fn sub<A: Sub<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:18:5
- |
-LL | lhs * rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
help: consider further restricting this bound
|
LL | fn mul<A: Mul<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:24:5
- |
-LL | lhs / rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
help: consider further restricting this bound
|
LL | fn div<A: Div<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:30:5
- |
-LL | lhs % rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
help: consider further restricting this bound
|
LL | fn rem<A: Rem<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:36:5
- |
-LL | lhs & rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
help: consider further restricting this bound
|
LL | fn bitand<A: BitAnd<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:42:5
- |
-LL | lhs | rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
help: consider further restricting this bound
|
LL | fn bitor<A: BitOr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:48:5
- |
-LL | lhs ^ rhs;
- | ^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
help: consider further restricting this bound
|
LL | fn bitxor<A: BitXor<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:54:5
- |
-LL | lhs << rhs;
- | ^^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
help: consider further restricting this bound
|
LL | fn shl<A: Shl<B, Output=()> + Copy, B>(lhs: A, rhs: B) {
| ^^^ value used here after move
|
note: calling this operator moves the left-hand side
- --> $DIR/binop-consume-args.rs:60:5
- |
-LL | lhs >> rhs;
- | ^^^^^^^^^^
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
help: consider further restricting this bound
|
LL | fn shr<A: Shr<B, Output=()> + Copy, B>(lhs: A, rhs: B) {