blob: 36ec9b34ebdb1503acc3b17b5193f9e2ab9f97a3 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
fn main() {
}
trait TraitWithAssoc {
type Assoc;
}
type Foo<V> = impl Trait<V::Assoc>; //~ associated type `Assoc` not found for `V`
trait Trait<U> {}
impl<W> Trait<W> for () {}
fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T> {
()
}