2021-09-14 19:00:00 -05:00
|
|
|
// Regression test for #88972. Used to cause a query cycle:
|
|
|
|
// optimized mir -> remove zsts -> layout of a generator -> optimized mir.
|
|
|
|
//
|
|
|
|
// edition:2018
|
2021-12-13 12:25:36 -06:00
|
|
|
// compile-flags: --crate-type=lib -Zinline-mir=yes
|
2021-09-14 19:00:00 -05: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()
|
|
|
|
}
|