1 error[E0204]: the trait `Copy` cannot 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`
10 note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
11 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:14
13 LL | pub loc: Vector2<K>,
15 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
16 help: consider further restricting this bound
18 LL | pub struct AABB<K: Copy + Debug>{
21 error[E0277]: `K` doesn't implement `Debug`
22 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:14
24 LL | pub loc: Vector2<K>,
25 | ^^^^^^^^^^ `K` cannot be formatted using `{:?}` because it doesn't implement `Debug`
27 note: required by a bound in `Vector2`
28 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:5:23
30 LL | pub struct Vector2<T: Debug + Copy + Clone>{
31 | ^^^^^ required by this bound in `Vector2`
32 help: consider further restricting this bound
34 LL | pub struct AABB<K: Copy + std::fmt::Debug>{
37 error[E0277]: `K` doesn't implement `Debug`
38 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:5
40 LL | #[derive(Debug, Copy, Clone)]
41 | ----- in this derive macro expansion
42 LL | pub struct AABB<K: Copy>{
43 LL | pub loc: Vector2<K>,
44 | ^^^^^^^^^^^^^^^^^^^ `K` cannot be formatted using `{:?}` because it doesn't implement `Debug`
46 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
47 help: consider further restricting this bound
49 LL | pub struct AABB<K: Copy + std::fmt::Debug>{
52 error[E0277]: `K` doesn't implement `Debug`
53 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:14:5
55 LL | #[derive(Debug, Copy, Clone)]
56 | ----- in this derive macro expansion
58 LL | pub size: Vector2<K>
59 | ^^^^^^^^^^^^^^^^^^^^ `K` cannot be formatted using `{:?}` because it doesn't implement `Debug`
61 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
62 help: consider further restricting this bound
64 LL | pub struct AABB<K: Copy + std::fmt::Debug>{
67 error: aborting due to 4 previous errors
69 Some errors have detailed explanations: E0204, E0277.
70 For more information about an error, try `rustc --explain E0204`.