blob: 1becb1e83a5acafae49e8a1e42a9c4907e32b070 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
fn main() {
}
trait TraitWithAssoc {
type Assoc;
}
type Foo<V> = impl Trait<V>;
//~^ ERROR could not find defining uses
//~| ERROR the trait bound `T: TraitWithAssoc` is not satisfied
trait Trait<U> {}
impl<W> Trait<W> for () {}
fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> { //~ ERROR does not fully define
()
}