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