2018-08-08 07:28:26 -05:00
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:7:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs + rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:8:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs + rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:13:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs - rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:14:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs - rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:19:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs * rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:20:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs * rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:25:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs / rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:26:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs / rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:31:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs % rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:32:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs % rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:37:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs & rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:38:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs & rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:43:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs | rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:44:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs | rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:49:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs ^ rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:50:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs ^ rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:55:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs << rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:56:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs << rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `lhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:61:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
|
2019-11-19 18:43:24 -06:00
|
|
|
| -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
|
2019-04-22 02:40:08 -05:00
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider further restricting this bound: `A: Copy +`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs >> rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `rhs`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/binop-consume-args.rs:62:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
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
|
|
|
|
| |
|
2019-11-19 19:11:55 -06:00
|
|
|
| help: consider restricting this bound: `B: Copy`
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | lhs >> rhs;
|
|
|
|
| --- value moved here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | drop(lhs);
|
|
|
|
LL | drop(rhs);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ value used here after move
|
|
|
|
|
|
|
|
error: aborting due to 20 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|