]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error[E0204]: the trait `Copy` may not be implemented for this type |
2 | --> $DIR/missing-bound-in-derive-copy-impl.rs:9:17 | |
3 | | | |
4 | LL | #[derive(Debug, Copy, Clone)] | |
5 | | ^^^^ | |
6 | LL | pub struct AABB<K>{ | |
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` | |
11 | | | |
12 | note: the `Copy` impl for `Vector2<K>` requires that `K: Debug` | |
13 | --> $DIR/missing-bound-in-derive-copy-impl.rs:11:14 | |
14 | | | |
15 | LL | pub loc: Vector2<K>, | |
16 | | ^^^^^^^^^^ | |
17 | LL | pub size: Vector2<K> | |
18 | | ^^^^^^^^^^ | |
19 | = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) | |
20 | help: consider restricting type parameter `K` | |
21 | | | |
22 | LL | pub struct AABB<K: Debug>{ | |
23 | | +++++++ | |
24 | ||
25 | error: aborting due to previous error | |
26 | ||
27 | For more information about this error, try `rustc --explain E0204`. |