blob: 2d08b7ba4c11ac263b8ff3c4694d68f4011d53b5 [file] [log] [blame] [edit]
#![feature(type_alias_impl_trait)]
// this test used to stack overflow due to infinite recursion.
//@ check-pass
//@ compile-flags: --edition=2018
use std::future::Future;
fn main() {
let _ = move || async move {
let value = 0u8;
blah(&value).await;
};
}
type BlahFut<'a> = impl Future<Output = ()> + Send + 'a;
fn blah<'a>(_value: &'a u8) -> BlahFut<'a> {
async {}
}