1 error[E0277]: the trait bound `Box<T>: Copy` is not satisfied
2 --> $DIR/issue-74824.rs:7:26
4 LL | type Copy<T>: Copy = Box<T>;
5 | ^^^^^^ the trait `Copy` is not implemented for `Box<T>`
7 note: required by a bound in `UnsafeCopy::Copy`
8 --> $DIR/issue-74824.rs:7:19
10 LL | type Copy<T>: Copy = Box<T>;
11 | ^^^^ required by this bound in `UnsafeCopy::Copy`
13 error[E0277]: the trait bound `T: Clone` is not satisfied
14 --> $DIR/issue-74824.rs:7:26
16 LL | type Copy<T>: Copy = Box<T>;
17 | ^^^^^^ the trait `Clone` is not implemented for `T`
19 = note: required because of the requirements on the impl of `Clone` for `Box<T>`
20 note: required by a bound in `UnsafeCopy::Copy`
21 --> $DIR/issue-74824.rs:7:19
23 LL | type Copy<T>: Copy = Box<T>;
24 | ^^^^ required by this bound in `UnsafeCopy::Copy`
25 help: consider restricting type parameter `T`
27 LL | type Copy<T: std::clone::Clone>: Copy = Box<T>;
30 error[E0282]: type annotations needed
31 --> $DIR/issue-74824.rs:19:16
33 LL | let copy = <()>::copy(&b);
34 | ^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `copy`
36 error: aborting due to 3 previous errors
38 Some errors have detailed explanations: E0277, E0282.
39 For more information about an error, try `rustc --explain E0277`.