fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.7 KiB45 linesraw
1error[E0277]: the trait bound `C: std::marker::Copy` is not satisfied
2  --> $DIR/deriving-copyclone.rs:31:13
3   |
4LL | fn is_copy<T: Copy>(_: T) {}
5   |               ---- required by this bound in `is_copy`
6...
7LL |     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
15error[E0277]: the trait bound `C: std::clone::Clone` is not satisfied
16  --> $DIR/deriving-copyclone.rs:32:14
17   |
18LL | fn is_clone<T: Clone>(_: T) {}
19   |                ----- required by this bound in `is_clone`
20...
21LL |     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
29error[E0277]: the trait bound `D: std::marker::Copy` is not satisfied
30  --> $DIR/deriving-copyclone.rs:35:13
31   |
32LL | fn is_copy<T: Copy>(_: T) {}
33   |               ---- required by this bound in `is_copy`
34...
35LL |     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
43error: aborting due to 3 previous errors
44
45For more information about this error, try `rustc --explain E0277`.