fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `X: Copy` is not satisfied 2 --> $DIR/trait-impl-bound-suggestions.rs:14:52 3 | 4LL | fn return_the_constrained_type(&self, x: X) -> ConstrainedStruct<X> { 5 | ^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `X` 6 | 7note: required by a bound in `ConstrainedStruct` 8 --> $DIR/trait-impl-bound-suggestions.rs:8:29 9 | 10LL | struct ConstrainedStruct<X: Copy> { 11 | ^^^^ required by this bound in `ConstrainedStruct` 12help: consider further restricting type parameter `X` 13 | 14LL | trait InsufficientlyConstrainedGeneric<X=()> where X: std::marker::Copy { 15 | ++++++++++++++++++++++++++ 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0277`.