]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/issue-91492.stderr
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / derives / issue-91492.stderr
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
3    |
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);
8    |         ^^^^^^^^^^^^^^^^^
9    |
10    = note: the following trait bounds were not satisfied:
11            `NoDerives: Clone`
12 help: consider annotating `NoDerives` with `#[derive(Clone)]`
13    |
14 LL | #[derive(Clone)]
15    |
16
17 error[E0599]: the method `extend_from_slice` exists for mutable reference `&mut Vec<SomeDerives>`, but its trait bounds were not satisfied
18   --> $DIR/issue-91492.rs:12:9
19    |
20 LL | pub struct SomeDerives;
21    | ---------------------- doesn't satisfy `SomeDerives: Clone`
22 LL | fn fun2(foo: &mut Vec<SomeDerives>, bar: &[SomeDerives]) {
23 LL |     foo.extend_from_slice(bar);
24    |         ^^^^^^^^^^^^^^^^^
25    |
26    = note: the following trait bounds were not satisfied:
27            `SomeDerives: Clone`
28 help: consider annotating `SomeDerives` with `#[derive(Clone)]`
29    |
30 LL | #[derive(Clone)]
31    |
32
33 error[E0599]: the method `use_clone` exists for struct `Object<NoDerives, SomeDerives>`, but its trait bounds were not satisfied
34   --> $DIR/issue-91492.rs:22:9
35    |
36 LL | pub struct NoDerives;
37    | -------------------- doesn't satisfy `NoDerives: Clone`
38 ...
39 LL | struct Object<T, A>(T, A);
40    | ------------------- method `use_clone` not found for this struct
41 ...
42 LL |     foo.use_clone();
43    |         ^^^^^^^^^ method cannot be called on `Object<NoDerives, SomeDerives>` due to unsatisfied trait bounds
44    |
45    = note: the following trait bounds were not satisfied:
46            `NoDerives: Clone`
47 help: consider annotating `NoDerives` with `#[derive(Clone)]`
48    |
49 LL | #[derive(Clone)]
50    |
51
52 error: aborting due to 3 previous errors
53
54 For more information about this error, try `rustc --explain E0599`.