--> $DIR/binop-move-semantics.rs:8:5
|
LL | fn double_move<T: Add<Output=()>>(x: T) {
- | - - move occurs because `x` has type `T`, which does not implement the `Copy` trait
+ | -- - move occurs because `x` has type `T`, 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: `T: Copy +`
LL | x
| - value moved here
LL | +
--> $DIR/binop-move-semantics.rs:14:5
|
LL | fn move_then_borrow<T: Add<Output=()> + Clone>(x: T) {
- | - - move occurs because `x` has type `T`, which does not implement the `Copy` trait
+ | -- - move occurs because `x` has type `T`, 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: `T: Copy +`
LL | x
| - value moved here
LL | +