fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.4 KiB36 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   |             ^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `C`
9   |
10   = note: required because of the requirements on the impl of `std::marker::Copy` for `B<C>`
11
12error[E0277]: the trait bound `C: std::clone::Clone` is not satisfied
13  --> $DIR/deriving-copyclone.rs:32:14
14   |
15LL | fn is_clone<T: Clone>(_: T) {}
16   |    --------    ----- required by this bound in `is_clone`
17...
18LL |     is_clone(B { a: 1, b: C });
19   |              ^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` is not implemented for `C`
20   |
21   = note: required because of the requirements on the impl of `std::clone::Clone` for `B<C>`
22
23error[E0277]: the trait bound `D: std::marker::Copy` is not satisfied
24  --> $DIR/deriving-copyclone.rs:35:13
25   |
26LL | fn is_copy<T: Copy>(_: T) {}
27   |    -------    ---- required by this bound in `is_copy`
28...
29LL |     is_copy(B { a: 1, b: D });
30   |             ^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `D`
31   |
32   = note: required because of the requirements on the impl of `std::marker::Copy` for `B<D>`
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0277`.