]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-43784-associated-type.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / issue-43784-associated-type.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2   --> $DIR/issue-43784-associated-type.rs:14:18
3    |
4 LL |     type Assoc = T;
5    |                  ^ the trait `Copy` is not implemented for `T`
6    |
7 note: required by a bound in `Complete::Assoc`
8   --> $DIR/issue-43784-associated-type.rs:5:17
9    |
10 LL |     type Assoc: Partial<Self>;
11    |                 ^^^^^^^^^^^^^ required by this bound in `Complete::Assoc`
12 help: consider restricting type parameter `T`
13    |
14 LL | impl<T: std::marker::Copy> Complete for T {
15    |       +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.