@@ -2,10 +2,8 @@ error[E0277]: the trait bound `B<C>: Copy` is not satisfied
22 --> $DIR/deriving-copyclone.rs:31:26
33 |
44LL | is_copy(B { a: 1, b: C });
5- | ------- ^
6- | | |
7- | | the trait `Copy` is not implemented for `B<C>`
8- | | help: consider borrowing here: `&`
5+ | ------- ^ the trait `Copy` is not implemented for `B<C>`
6+ | |
97 | required by a bound introduced by this call
108 |
119note: required for `B<C>` to implement `Copy`
@@ -18,15 +16,17 @@ note: required by a bound in `is_copy`
1816 |
1917LL | fn is_copy<T: Copy>(_: T) {}
2018 | ^^^^ required by this bound in `is_copy`
19+ help: consider borrowing here
20+ |
21+ LL | is_copy(B { a: 1, b: &C });
22+ | +
2123
2224error[E0277]: the trait bound `B<C>: Clone` is not satisfied
2325 --> $DIR/deriving-copyclone.rs:32:27
2426 |
2527LL | is_clone(B { a: 1, b: C });
26- | -------- ^
27- | | |
28- | | the trait `Clone` is not implemented for `B<C>`
29- | | help: consider borrowing here: `&`
28+ | -------- ^ the trait `Clone` is not implemented for `B<C>`
29+ | |
3030 | required by a bound introduced by this call
3131 |
3232note: required for `B<C>` to implement `Clone`
@@ -39,15 +39,17 @@ note: required by a bound in `is_clone`
3939 |
4040LL | fn is_clone<T: Clone>(_: T) {}
4141 | ^^^^^ required by this bound in `is_clone`
42+ help: consider borrowing here
43+ |
44+ LL | is_clone(B { a: 1, b: &C });
45+ | +
4246
4347error[E0277]: the trait bound `B<D>: Copy` is not satisfied
4448 --> $DIR/deriving-copyclone.rs:35:26
4549 |
4650LL | is_copy(B { a: 1, b: D });
47- | ------- ^
48- | | |
49- | | the trait `Copy` is not implemented for `B<D>`
50- | | help: consider borrowing here: `&`
51+ | ------- ^ the trait `Copy` is not implemented for `B<D>`
52+ | |
5153 | required by a bound introduced by this call
5254 |
5355note: required for `B<D>` to implement `Copy`
@@ -60,6 +62,10 @@ note: required by a bound in `is_copy`
6062 |
6163LL | fn is_copy<T: Copy>(_: T) {}
6264 | ^^^^ required by this bound in `is_copy`
65+ help: consider borrowing here
66+ |
67+ LL | is_copy(B { a: 1, b: &D });
68+ | +
6369
6470error: aborting due to 3 previous errors
6571
0 commit comments