blob: a3f0bdc85148141047fc2e83ccd8f895da3695fd [file] [log] [blame]
//@ compile-flags: -Z print-type-sizes --crate-type lib
//@ edition:2021
//@ build-pass
//@ ignore-pass
async fn wait() {}
async fn big_fut(arg: [u8; 1024]) {}
async fn calls_fut(fut: impl std::future::Future<Output = ()>) {
loop {
wait().await;
if true {
return fut.await;
} else {
wait().await;
}
}
}
pub async fn test() {
let fut = big_fut([0u8; 1024]);
calls_fut(fut).await;
}