]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-43784-associated-type.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / 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:5
3    |
4 LL |     type Assoc: Partial<Self>;
5    |                 ------------- required by this bound in `Complete::Assoc`
6 ...
7 LL |     type Assoc = T;
8    |     ^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
9    |
10 help: consider restricting type parameter `T`
11    |
12 LL | impl<T: std::marker::Copy> Complete for T {
13    |       ^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.