]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-43784-associated-type.stderr
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[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 for `<T as Complete>::Assoc` to implement `Partial<T>`
8   --> $DIR/issue-43784-associated-type.rs:1:11
9    |
10 LL | pub trait Partial<X: ?Sized>: Copy {
11    |           ^^^^^^^
12 note: required by a bound in `Complete::Assoc`
13   --> $DIR/issue-43784-associated-type.rs:5:17
14    |
15 LL |     type Assoc: Partial<Self>;
16    |                 ^^^^^^^^^^^^^ required by this bound in `Complete::Assoc`
17 help: consider restricting type parameter `T`
18    |
19 LL | impl<T: std::marker::Copy> Complete for T {
20    |       +++++++++++++++++++
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.