blob: a1cf23dab7b6937e67d3feb3f732d9bdd3871e79 [file] [log] [blame]
// check-pass
#![feature(coroutines, coroutine_trait)]
#![feature(type_alias_impl_trait)]
trait Trait {}
impl<T> Trait for T {}
type Foo<'c> = impl Trait + 'c;
fn foo<'a>(rng: &'a ()) -> Foo<'a> {
fn helper<'b>(rng: &'b ()) -> impl 'b + Trait {
rng
}
helper(rng)
}
fn main() {
}