1 error[E0599]: the method `clone` exists for struct `Foo<NonCopy>`, but its trait bounds were not satisfied
2 --> $DIR/deriving-with-repr-packed-2.rs:20:11
4 LL | pub struct Foo<T>(T, T, T);
7 | method `clone` not found for this struct
8 | doesn't satisfy `Foo<NonCopy>: Clone`
13 | doesn't satisfy `NonCopy: Clone`
14 | doesn't satisfy `NonCopy: Copy`
17 | ^^^^^ method cannot be called on `Foo<NonCopy>` due to unsatisfied trait bounds
19 note: the following trait bounds were not satisfied:
22 --> $DIR/deriving-with-repr-packed-2.rs:7:16
24 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
25 | ^^^^^ unsatisfied trait bound introduced in this `derive` macro
26 help: consider annotating `NonCopy` with `#[derive(Clone, Copy)]`
28 LL | #[derive(Clone, Copy)]
31 error: aborting due to previous error
33 For more information about this error, try `rustc --explain E0599`.