]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43784-associated-type.stderr
Remove `AssocTypeBound` and propagate bound `Span`s
[rust.git] / src / test / ui / issues / issue-43784-associated-type.stderr
1 error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
2   --> $DIR/issue-43784-associated-type.rs:14:18
3    |
4 LL |     type Assoc = T;
5    |                  ^ the trait `std::marker::Copy` is not implemented for `T`
6    |
7    = note: required because of the requirements on the impl of `std::marker::Copy` for `<T as Complete>::Assoc`
8 help: consider restricting type parameter `T`
9    |
10 LL | impl<T: std::marker::Copy> Complete for T {
11    |       ^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.