]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `T: Copy` is not satisfied |
29967ef6 | 2 | --> $DIR/issue-43784-associated-type.rs:14:5 |
8faf50e0 | 3 | | |
29967ef6 XL |
4 | LL | type Assoc: Partial<Self>; |
5 | | ------------- required by this bound in `Complete::Assoc` | |
6 | ... | |
e74abb32 | 7 | LL | type Assoc = T; |
29967ef6 | 8 | | ^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T` |
74b04a01 | 9 | | |
ba9703b0 | 10 | help: consider restricting type parameter `T` |
74b04a01 | 11 | | |
1b1a35ee XL |
12 | LL | impl<T: Copy> Complete for T { |
13 | | ^^^^^^ | |
8faf50e0 | 14 | |
b7449926 | 15 | error: aborting due to previous error |
8faf50e0 | 16 | |
b7449926 | 17 | For more information about this error, try `rustc --explain E0277`. |