blob: 4b17448080ed7719a986e664b4ff3f0f726fb899 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
pub trait Trait<'a> {
type Assoc;
}
trait Test<'a> {}
pub type Foo = impl for<'a> Trait<'a, Assoc = impl Test<'a>>;
//~^ ERROR `impl Trait` cannot capture higher-ranked lifetime from outer `impl Trait`
impl Trait<'_> for () {
type Assoc = ();
}
impl Test<'_> for () {}
#[define_opaque(Foo)]
fn constrain() -> Foo {
()
}
fn main() {}