//@ known-bug: #91985 #![feature(generic_associated_types)] pub trait Trait1 { type Associated: Ord; } pub trait Trait2 { type Associated: Clone; } pub trait GatTrait { type Gat; } pub struct GatStruct; impl GatTrait for GatStruct { type Gat = Box; } pub struct OuterStruct { inner: InnerStruct, t1: T1, } pub struct InnerStruct { pub gat: G::Gat, } impl OuterStruct where T1: Trait1, T2: Trait2, { pub fn new() -> Self { todo!() } } pub fn main() {}