]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/missing-bound-in-derive-copy-impl.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / suggestions / missing-bound-in-derive-copy-impl.stderr
CommitLineData
923072b8
FG
1error[E0204]: the trait `Copy` may not 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`
9LL | pub size: Vector2<K>
10 | -------------------- this field does not implement `Copy`
11 |
12note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
13 --> $DIR/missing-bound-in-derive-copy-impl.rs:11:14
14 |
15LL | pub loc: Vector2<K>,
16 | ^^^^^^^^^^
17LL | 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)
20help: consider restricting type parameter `K`
21 |
22LL | pub struct AABB<K: Debug>{
23 | +++++++
24
25error: aborting due to previous error
26
27For more information about this error, try `rustc --explain E0204`.