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