]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/issue-43784-associated-type.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / associated-types / issue-43784-associated-type.rs
CommitLineData
3b2f2976
XL
1pub trait Partial<X: ?Sized>: Copy {
2}
3
4pub trait Complete {
5 type Assoc: Partial<Self>;
6}
7
8impl<T> Partial<T> for T::Assoc where
9 T: Complete
10{
11}
041b39d2 12
e74abb32 13impl<T> Complete for T {
1b1a35ee 14 type Assoc = T; //~ ERROR the trait bound `T: Copy` is not satisfied
223e47cc 15}
b7449926
XL
16
17fn main() {}