//@ 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::pin(async { get_all_files_in_dir().await; }) }