fork/rust

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

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

master
712 B19 linesraw
1error[E0277]: the trait bound `K: Copy` is not satisfied
2  --> $DIR/missing-bound-in-derive-copy-impl-2.rs:12:14
3   |
4LL |     pub loc: Vector2<K>,
5   |              ^^^^^^^^^^ the trait `Copy` is not implemented for `K`
6   |
7note: required by a bound in `Vector2`
8  --> $DIR/missing-bound-in-derive-copy-impl-2.rs:5:31
9   |
10LL | pub struct Vector2<T: Debug + Copy + Clone>{
11   |                               ^^^^ required by this bound in `Vector2`
12help: consider further restricting this bound
13   |
14LL | pub struct AABB<K: Debug + std::marker::Copy>{
15   |                          +++++++++++++++++++
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.