]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-74824.stderr
Unify Opaque/Projection handling in region outlives code
[rust.git] / tests / ui / generic-associated-types / issue-74824.stderr
1 error[E0277]: the trait bound `Box<T>: Copy` is not satisfied
2   --> $DIR/issue-74824.rs:6:26
3    |
4 LL |     type Copy<T>: Copy = Box<T>;
5    |                          ^^^^^^ the trait `Copy` is not implemented for `Box<T>`
6    |
7 note: required by a bound in `UnsafeCopy::Copy`
8   --> $DIR/issue-74824.rs:6:19
9    |
10 LL |     type Copy<T>: Copy = Box<T>;
11    |                   ^^^^ required by this bound in `UnsafeCopy::Copy`
12
13 error[E0277]: the trait bound `T: Clone` is not satisfied
14   --> $DIR/issue-74824.rs:6:26
15    |
16 LL |     type Copy<T>: Copy = Box<T>;
17    |                          ^^^^^^ the trait `Clone` is not implemented for `T`
18    |
19    = note: required for `Box<T>` to implement `Clone`
20 note: required by a bound in `UnsafeCopy::Copy`
21   --> $DIR/issue-74824.rs:6:19
22    |
23 LL |     type Copy<T>: Copy = Box<T>;
24    |                   ^^^^ required by this bound in `UnsafeCopy::Copy`
25 help: consider restricting type parameter `T`
26    |
27 LL |     type Copy<T: std::clone::Clone>: Copy = Box<T>;
28    |                +++++++++++++++++++
29
30 error: aborting due to 2 previous errors
31
32 For more information about this error, try `rustc --explain E0277`.