6 impl MyTrait for MyStruct {
8 // @has foo/struct.MyStruct.html '//a/@href' 'struct.MyStruct.html#associatedtype.AssoType'
12 /// [`AssoType`]: MyStruct::AssoType
15 // @has foo/struct.MyStruct.html '//a/@href' 'struct.MyStruct.html#associatedconstant.ASSO_CONST'
19 /// [`ASSO_CONST`]: MyStruct::ASSO_CONST
20 const ASSO_CONST: i32 = 10;
22 // @has foo/struct.MyStruct.html '//a/@href' 'struct.MyStruct.html#method.trait_fn'
26 /// [`trait_fn`]: MyStruct::trait_fn
32 const ASSO_CONST: i32 = 1;