]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/deriving-copyclone.stderr
Rollup merge of #70656 - GuillaumeGomez:scrollbar-display, r=kinnison
[rust.git] / src / test / ui / derives / deriving-copyclone.stderr
1 error[E0277]: the trait bound `C: std::marker::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 `std::marker::Copy`
11    |             help: consider borrowing here: `&B { a: 1, b: C }`
12    |
13    = note: required because of the requirements on the impl of `std::marker::Copy` for `B<C>`
14
15 error[E0277]: the trait bound `C: std::clone::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 `std::clone::Clone`
25    |              help: consider borrowing here: `&B { a: 1, b: C }`
26    |
27    = note: required because of the requirements on the impl of `std::clone::Clone` for `B<C>`
28
29 error[E0277]: the trait bound `D: std::marker::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 `std::marker::Copy`
39    |             help: consider borrowing here: `&B { a: 1, b: D }`
40    |
41    = note: required because of the requirements on the impl of `std::marker::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`.