// run-rustfix trait Trait {} trait Assoc { type Ty; } impl Assoc for dyn Trait { type Ty = i32; } fn main() { let _x: as Assoc>::Ty; //~ ERROR ambiguous associated type }