1 error[E0599]: the method `clone` exists for struct `Bar<NotClone>`, but its trait bounds were not satisfied
2 --> $DIR/derive-assoc-type-not-impl.rs:18:30
4 LL | struct Bar<T: Foo> {
7 | method `clone` not found for this
8 | doesn't satisfy `Bar<NotClone>: Clone`
11 | ---------------- doesn't satisfy `NotClone: Clone`
13 LL | Bar::<NotClone> { x: 1 }.clone();
14 | ^^^^^ method cannot be called on `Bar<NotClone>` due to unsatisfied trait bounds
16 = note: the following trait bounds were not satisfied:
18 which is required by `Bar<NotClone>: Clone`
19 = help: items from traits can only be used if the trait is implemented and in scope
20 = note: the following trait defines an item `clone`, perhaps you need to implement it:
23 error: aborting due to previous error
25 For more information about this error, try `rustc --explain E0599`.