--> $DIR/binop-consume-args.rs:7:10
|
LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs + rhs;
| --- value moved here
LL | drop(lhs);
LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs + rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:13:10
|
LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs - rhs;
| --- value moved here
LL | drop(lhs);
LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs - rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:19:10
|
LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs * rhs;
| --- value moved here
LL | drop(lhs);
LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs * rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:25:10
|
LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs / rhs;
| --- value moved here
LL | drop(lhs);
LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs / rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:31:10
|
LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs % rhs;
| --- value moved here
LL | drop(lhs);
LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs % rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:37:10
|
LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs & rhs;
| --- value moved here
LL | drop(lhs);
LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs & rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:43:10
|
LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs | rhs;
| --- value moved here
LL | drop(lhs);
LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs | rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:49:10
|
LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs ^ rhs;
| --- value moved here
LL | drop(lhs);
LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs ^ rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:55:10
|
LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs << rhs;
| --- value moved here
LL | drop(lhs);
LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs << rhs;
| --- value moved here
LL | drop(lhs);
--> $DIR/binop-consume-args.rs:61:10
|
LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
- | - --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
+ | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `A: Copy +`
LL | lhs >> rhs;
| --- value moved here
LL | drop(lhs);
LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
| - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
| |
- | consider adding a `Copy` constraint to this type argument
+ | help: consider adding a `Copy` constraint to this type argument: `B: Copy`
LL | lhs >> rhs;
| --- value moved here
LL | drop(lhs);