blob: aef13947f5540381affed0ba4e33b080f1987cb2 [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;
#[define_opaque(Foo)]
fn foo<'a>(rng: &'a ()) -> Foo<'a> {
fn helper<'b>(rng: &'b ()) -> impl 'b + Trait {
rng
}
helper(rng)
}
fn main() {}