1 error[E0277]: the trait bound `B<C>: Copy` is not satisfied
2 --> $DIR/deriving-copyclone.rs:31:13
4 LL | is_copy(B { a: 1, b: C });
5 | ------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `B<C>`
7 | required by a bound introduced by this call
9 note: required for `B<C>` to implement `Copy`
10 --> $DIR/deriving-copyclone.rs:9:10
12 LL | #[derive(Copy, Clone)]
14 note: required by a bound in `is_copy`
15 --> $DIR/deriving-copyclone.rs:18:15
17 LL | fn is_copy<T: Copy>(_: T) {}
18 | ^^^^ required by this bound in `is_copy`
19 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
20 help: consider borrowing here
22 LL | is_copy(&B { a: 1, b: C });
25 error[E0277]: the trait bound `B<C>: Clone` is not satisfied
26 --> $DIR/deriving-copyclone.rs:32:14
28 LL | is_clone(B { a: 1, b: C });
29 | -------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `B<C>`
31 | required by a bound introduced by this call
33 note: required for `B<C>` to implement `Clone`
34 --> $DIR/deriving-copyclone.rs:9:16
36 LL | #[derive(Copy, Clone)]
38 note: required by a bound in `is_clone`
39 --> $DIR/deriving-copyclone.rs:19:16
41 LL | fn is_clone<T: Clone>(_: T) {}
42 | ^^^^^ required by this bound in `is_clone`
43 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
44 help: consider borrowing here
46 LL | is_clone(&B { a: 1, b: C });
49 error[E0277]: the trait bound `B<D>: Copy` is not satisfied
50 --> $DIR/deriving-copyclone.rs:35:13
52 LL | is_copy(B { a: 1, b: D });
53 | ------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `B<D>`
55 | required by a bound introduced by this call
57 note: required for `B<D>` to implement `Copy`
58 --> $DIR/deriving-copyclone.rs:9:10
60 LL | #[derive(Copy, Clone)]
62 note: required by a bound in `is_copy`
63 --> $DIR/deriving-copyclone.rs:18:15
65 LL | fn is_copy<T: Copy>(_: T) {}
66 | ^^^^ required by this bound in `is_copy`
67 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
68 help: consider borrowing here
70 LL | is_copy(&B { a: 1, b: D });
73 error: aborting due to 3 previous errors
75 For more information about this error, try `rustc --explain E0277`.