rust/tests/crashes/132335.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
327 B
Rust
Raw Normal View History

2024-11-06 15:10:23 -06:00
//@ 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;
})
}