]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.stderr
bump version to 1.79.0+dfsg1-1~bpo12+pve2
[rustc.git] / tests / ui / suggestions / missing-bound-in-derive-copy-impl-3.stderr
1 error[E0204]: the trait `Copy` cannot 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 |
10 note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
11 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:14
12 |
13 LL | 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)
16 help: consider further restricting this bound
17 |
18 LL | pub struct AABB<K: Copy + Debug>{
19 | +++++++
20
21 error[E0277]: `K` doesn't implement `Debug`
22 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:14
23 |
24 LL | pub loc: Vector2<K>,
25 | ^^^^^^^^^^ `K` cannot be formatted using `{:?}` because it doesn't implement `Debug`
26 |
27 note: required by a bound in `Vector2`
28 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:5:23
29 |
30 LL | pub struct Vector2<T: Debug + Copy + Clone>{
31 | ^^^^^ required by this bound in `Vector2`
32 help: consider further restricting this bound
33 |
34 LL | pub struct AABB<K: Copy + std::fmt::Debug>{
35 | +++++++++++++++++
36
37 error[E0277]: `K` doesn't implement `Debug`
38 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:12:5
39 |
40 LL | #[derive(Debug, Copy, Clone)]
41 | ----- in this derive macro expansion
42 LL | pub struct AABB<K: Copy>{
43 LL | pub loc: Vector2<K>,
44 | ^^^^^^^^^^^^^^^^^^^ `K` cannot be formatted using `{:?}` because it doesn't implement `Debug`
45 |
46 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
47 help: consider further restricting this bound
48 |
49 LL | pub struct AABB<K: Copy + std::fmt::Debug>{
50 | +++++++++++++++++
51
52 error[E0277]: `K` doesn't implement `Debug`
53 --> $DIR/missing-bound-in-derive-copy-impl-3.rs:14:5
54 |
55 LL | #[derive(Debug, Copy, Clone)]
56 | ----- in this derive macro expansion
57 ...
58 LL | pub size: Vector2<K>
59 | ^^^^^^^^^^^^^^^^^^^^ `K` cannot be formatted using `{:?}` because it doesn't implement `Debug`
60 |
61 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
62 help: consider further restricting this bound
63 |
64 LL | pub struct AABB<K: Copy + std::fmt::Debug>{
65 | +++++++++++++++++
66
67 error: aborting due to 4 previous errors
68
69 Some errors have detailed explanations: E0204, E0277.
70 For more information about an error, try `rustc --explain E0204`.