0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 09:36:05 +01:00
rust/tests/crashes/132335.rs
2024-11-06 22:10:23 +01:00

14 lines
327 B
Rust

//@ known-bug: #132335
//@ compile-flags: -Znext-solver=globally --crate-type lib --edition=2018
use core::future::Future;
use core::pin::Pin;
pub trait Unit {}
impl Unit for () {}
pub fn get_all_files_in_dir() -> Pin<Box<dyn Future<Output = impl Unit>>> {
Box::pin(async {
get_all_files_in_dir().await;
})
}