#![feature(type_alias_impl_trait)] fn main() {} trait TraitWithAssoc { type Assoc; } type Foo = impl Trait; //~ associated type `Assoc` not found for `V` trait Trait {} impl Trait for () {} fn foo_desugared(_: T) -> Foo { () }