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