]>
Commit | Line | Data |
---|---|---|
3c0e092e | 1 | error[E0277]: the trait bound `B<C>: Copy` is not satisfied |
9ffffee4 | 2 | --> $DIR/deriving-copyclone.rs:31:26 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | is_copy(B { a: 1, b: C }); |
9ffffee4 | 5 | | ------- ^ the trait `Copy` is not implemented for `B<C>` |
c295e0f8 XL |
6 | | | |
7 | | required by a bound introduced by this call | |
b7449926 | 8 | | |
f2b60f7d | 9 | note: required for `B<C>` to implement `Copy` |
136023e0 XL |
10 | --> $DIR/deriving-copyclone.rs:9:10 |
11 | | | |
12 | LL | #[derive(Copy, Clone)] | |
9c376795 | 13 | | ^^^^ unsatisfied trait bound introduced in this `derive` macro |
94222f64 XL |
14 | note: required by a bound in `is_copy` |
15 | --> $DIR/deriving-copyclone.rs:18:15 | |
16 | | | |
17 | LL | fn is_copy<T: Copy>(_: T) {} | |
18 | | ^^^^ required by this bound in `is_copy` | |
136023e0 | 19 | = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) |
c295e0f8 XL |
20 | help: consider borrowing here |
21 | | | |
9ffffee4 FG |
22 | LL | is_copy(B { a: 1, b: &C }); |
23 | | + | |
b7449926 | 24 | |
3c0e092e | 25 | error[E0277]: the trait bound `B<C>: Clone` is not satisfied |
9ffffee4 | 26 | --> $DIR/deriving-copyclone.rs:32:27 |
b7449926 | 27 | | |
532ac7d7 | 28 | LL | is_clone(B { a: 1, b: C }); |
9ffffee4 | 29 | | -------- ^ the trait `Clone` is not implemented for `B<C>` |
c295e0f8 XL |
30 | | | |
31 | | required by a bound introduced by this call | |
b7449926 | 32 | | |
f2b60f7d | 33 | note: required for `B<C>` to implement `Clone` |
136023e0 XL |
34 | --> $DIR/deriving-copyclone.rs:9:16 |
35 | | | |
36 | LL | #[derive(Copy, Clone)] | |
9c376795 | 37 | | ^^^^^ unsatisfied trait bound introduced in this `derive` macro |
94222f64 XL |
38 | note: required by a bound in `is_clone` |
39 | --> $DIR/deriving-copyclone.rs:19:16 | |
40 | | | |
41 | LL | fn is_clone<T: Clone>(_: T) {} | |
42 | | ^^^^^ required by this bound in `is_clone` | |
136023e0 | 43 | = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) |
c295e0f8 XL |
44 | help: consider borrowing here |
45 | | | |
9ffffee4 FG |
46 | LL | is_clone(B { a: 1, b: &C }); |
47 | | + | |
b7449926 | 48 | |
3c0e092e | 49 | error[E0277]: the trait bound `B<D>: Copy` is not satisfied |
9ffffee4 | 50 | --> $DIR/deriving-copyclone.rs:35:26 |
b7449926 | 51 | | |
532ac7d7 | 52 | LL | is_copy(B { a: 1, b: D }); |
9ffffee4 | 53 | | ------- ^ the trait `Copy` is not implemented for `B<D>` |
c295e0f8 XL |
54 | | | |
55 | | required by a bound introduced by this call | |
b7449926 | 56 | | |
f2b60f7d | 57 | note: required for `B<D>` to implement `Copy` |
136023e0 XL |
58 | --> $DIR/deriving-copyclone.rs:9:10 |
59 | | | |
60 | LL | #[derive(Copy, Clone)] | |
9c376795 | 61 | | ^^^^ unsatisfied trait bound introduced in this `derive` macro |
94222f64 XL |
62 | note: required by a bound in `is_copy` |
63 | --> $DIR/deriving-copyclone.rs:18:15 | |
64 | | | |
65 | LL | fn is_copy<T: Copy>(_: T) {} | |
66 | | ^^^^ required by this bound in `is_copy` | |
136023e0 | 67 | = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) |
c295e0f8 XL |
68 | help: consider borrowing here |
69 | | | |
9ffffee4 FG |
70 | LL | is_copy(B { a: 1, b: &D }); |
71 | | + | |
b7449926 XL |
72 | |
73 | error: aborting due to 3 previous errors | |
74 | ||
75 | For more information about this error, try `rustc --explain E0277`. |