1 error[E0277]: the trait bound `K: Copy` is not satisfied
2 --> $DIR/missing-bound-in-derive-copy-impl-2.rs:12:14
4 LL | pub loc: Vector2<K>,
5 | ^^^^^^^^^^ the trait `Copy` is not implemented for `K`
7 note: required by a bound in `Vector2`
8 --> $DIR/missing-bound-in-derive-copy-impl-2.rs:5:31
10 LL | pub struct Vector2<T: Debug + Copy + Clone>{
11 | ^^^^ required by this bound in `Vector2`
12 help: consider further restricting this bound
14 LL | pub struct AABB<K: Debug + std::marker::Copy>{
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.