#![feature(type_alias_impl_trait)] pub trait TraitWithAssoc { type Assoc; } pub type Foo = impl Trait; //~^ ERROR //~^^ ERROR pub trait Trait {} impl Trait for () {} pub fn foo_desugared(_: T) -> Foo { () }