1 error[E0599]: the method `extend_from_slice` exists for mutable reference `&mut Vec<NoDerives>`, but its trait bounds were not satisfied
2 --> $DIR/issue-91492.rs:4:9
4 LL | pub struct NoDerives;
5 | -------------------- doesn't satisfy `NoDerives: Clone`
6 LL | fn fun1(foo: &mut Vec<NoDerives>, bar: &[NoDerives]) {
7 LL | foo.extend_from_slice(bar);
10 = note: the following trait bounds were not satisfied:
12 help: consider annotating `NoDerives` with `#[derive(Clone)]`
15 LL | pub struct NoDerives;
18 error[E0599]: the method `extend_from_slice` exists for mutable reference `&mut Vec<SomeDerives>`, but its trait bounds were not satisfied
19 --> $DIR/issue-91492.rs:12:9
21 LL | pub struct SomeDerives;
22 | ---------------------- doesn't satisfy `SomeDerives: Clone`
23 LL | fn fun2(foo: &mut Vec<SomeDerives>, bar: &[SomeDerives]) {
24 LL | foo.extend_from_slice(bar);
27 = note: the following trait bounds were not satisfied:
29 help: consider annotating `SomeDerives` with `#[derive(Clone)]`
32 LL | pub struct SomeDerives;
35 error[E0599]: the method `use_clone` exists for struct `Object<NoDerives, SomeDerives>`, but its trait bounds were not satisfied
36 --> $DIR/issue-91492.rs:22:9
38 LL | pub struct NoDerives;
39 | -------------------- doesn't satisfy `NoDerives: Clone`
41 LL | struct Object<T, A>(T, A);
42 | ------------------- method `use_clone` not found for this struct
45 | ^^^^^^^^^ method cannot be called on `Object<NoDerives, SomeDerives>` due to unsatisfied trait bounds
47 note: trait bound `NoDerives: Clone` was not satisfied
48 --> $DIR/issue-91492.rs:18:9
50 LL | impl<T: Clone, A: Default> Object<T, A> {
53 | unsatisfied trait bound introduced here
54 help: consider annotating `NoDerives` with `#[derive(Clone)]`
57 LL | pub struct NoDerives;
60 error: aborting due to 3 previous errors
62 For more information about this error, try `rustc --explain E0599`.