1 error[E0204]: the trait `Copy` may not be implemented for this type
2 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:10:17
4 LL | #[derive(Debug, Copy, Clone)]
6 LL | pub struct AABB<K: Copy>{
7 LL | pub loc: Vector2<K>,
8 | ------------------- this field does not implement `Copy`
9 LL | pub size: Vector2<K>
10 | -------------------- this field does not implement `Copy`
12 note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
13 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:14
15 LL | pub loc: Vector2<K>,
17 LL | pub size: Vector2<K>
19 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
20 help: consider further restricting this bound
22 LL | pub struct AABB<K: Copy + Debug>{
25 error: aborting due to previous error
27 For more information about this error, try `rustc --explain E0204`.