fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
863 B23 linesraw
1error[E0204]: the trait `Copy` cannot be implemented for this type
2  --> $DIR/missing-bound-in-derive-copy-impl-3.rs:10:17
3   |
4LL | #[derive(Debug, Copy, Clone)]
5   |                 ^^^^
6LL | pub struct AABB<K: Copy>{
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-3.rs:12: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 further restricting this bound
17   |
18LL | pub struct AABB<K: Copy + Debug>{
19   |                         +++++++
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0204`.