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