2021-09-15 00:00:00 +00:00
|
|
|
// Regression test for #88972. Used to cause a query cycle:
|
2023-10-19 21:46:28 +00:00
|
|
|
// optimized mir -> remove zsts -> layout of a coroutine -> optimized mir.
|
2021-09-15 00:00:00 +00:00
|
|
|
//
|
|
|
|
//@ edition:2018
|
2021-12-13 19:25:36 +01:00
|
|
|
//@ compile-flags: --crate-type=lib -Zinline-mir=yes
|
2021-09-15 00:00:00 +00:00
|
|
|
//@ 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()
|
|
|
|
}
|