blob: a04e5001f3cd6b343b5419cefcd498f343b99bb3 [file] [log] [blame] [edit]
// Regression test for #88972. Used to cause a query cycle:
// optimized mir -> remove zsts -> layout of a coroutine -> optimized mir.
//
//@ edition:2018
//@ compile-flags: --crate-type=lib -Zinline-mir=yes
//@ build-pass
pub async fn listen() -> Result<(), std::io::Error> {
let f = do_async();
std::mem::forget(f);
Ok(())
}
pub async fn do_async() {
listen().await.unwrap()
}