// Test that we don't ICE for a typeck error that only shows up in dropck // Version that uses a generic associated type // Regression test for #91985 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 { //~^ ERROR the trait bound `::Associated: Clone` is not satisfied todo!() } } pub fn main() {}