]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / suggestions / missing-bound-in-derive-copy-impl-3.stderr
1 error[E0204]: the trait `Copy` may not be implemented for this type
2 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:10:17
3 |
4 LL | #[derive(Debug, Copy, Clone)]
5 | ^^^^
6 LL | pub struct AABB<K: Copy>{
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-3.rs:12: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 further restricting this bound
21 |
22 LL | pub struct AABB<K: Copy + Debug>{
23 | +++++++
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0204`.