]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `C: Copy` is not satisfied |
e1599b0c | 2 | --> $DIR/deriving-copyclone.rs:31:13 |
b7449926 | 3 | | |
e1599b0c | 4 | LL | fn is_copy<T: Copy>(_: T) {} |
ba9703b0 | 5 | | ---- required by this bound in `is_copy` |
e1599b0c | 6 | ... |
532ac7d7 | 7 | LL | is_copy(B { a: 1, b: C }); |
60c5eb7d XL |
8 | | ^^^^^^^^^^^^^^^^ |
9 | | | | |
1b1a35ee | 10 | | expected an implementor of trait `Copy` |
60c5eb7d | 11 | | help: consider borrowing here: `&B { a: 1, b: C }` |
b7449926 | 12 | | |
1b1a35ee | 13 | = note: required because of the requirements on the impl of `Copy` for `B<C>` |
b7449926 | 14 | |
1b1a35ee | 15 | error[E0277]: the trait bound `C: Clone` is not satisfied |
e1599b0c | 16 | --> $DIR/deriving-copyclone.rs:32:14 |
b7449926 | 17 | | |
e1599b0c | 18 | LL | fn is_clone<T: Clone>(_: T) {} |
ba9703b0 | 19 | | ----- required by this bound in `is_clone` |
e1599b0c | 20 | ... |
532ac7d7 | 21 | LL | is_clone(B { a: 1, b: C }); |
60c5eb7d XL |
22 | | ^^^^^^^^^^^^^^^^ |
23 | | | | |
1b1a35ee | 24 | | expected an implementor of trait `Clone` |
60c5eb7d | 25 | | help: consider borrowing here: `&B { a: 1, b: C }` |
b7449926 | 26 | | |
1b1a35ee | 27 | = note: required because of the requirements on the impl of `Clone` for `B<C>` |
b7449926 | 28 | |
1b1a35ee | 29 | error[E0277]: the trait bound `D: Copy` is not satisfied |
e1599b0c | 30 | --> $DIR/deriving-copyclone.rs:35:13 |
b7449926 | 31 | | |
e1599b0c | 32 | LL | fn is_copy<T: Copy>(_: T) {} |
ba9703b0 | 33 | | ---- required by this bound in `is_copy` |
e1599b0c | 34 | ... |
532ac7d7 | 35 | LL | is_copy(B { a: 1, b: D }); |
60c5eb7d XL |
36 | | ^^^^^^^^^^^^^^^^ |
37 | | | | |
1b1a35ee | 38 | | expected an implementor of trait `Copy` |
60c5eb7d | 39 | | help: consider borrowing here: `&B { a: 1, b: D }` |
b7449926 | 40 | | |
1b1a35ee | 41 | = note: required because of the requirements on the impl of `Copy` for `B<D>` |
b7449926 XL |
42 | |
43 | error: aborting due to 3 previous errors | |
44 | ||
45 | For more information about this error, try `rustc --explain E0277`. |