#![feature(inherent_associated_types)] #![expect(incomplete_features)] // A behaviour test showcasing that we do not normalize associated types in // the impl self ty when assembling IAT candidates trait Identity { type Assoc; } impl Identity for T { type Assoc = T; } struct Foo(T); impl Foo<::Assoc> { type Inherent = u8; } impl Foo<::Assoc> { type Inherent = u32; } struct Bar { field: >::Inherent, //~^ ERROR: multiple applicable items in scope } fn main() { Bar { field: 10_u8 }; }