rust/tests/ui/impl-trait/in-trait/late-bound-in-object-assocty.rs
2024-11-01 18:13:26 +00:00

14 lines
271 B
Rust

// Test for issue #132429
//@compile-flags: -Zunstable-options --edition=2024
//@check-pass
use std::future::Future;
trait Test {
fn foo<'a>(&'a self) -> Box<dyn Future<Output = impl IntoIterator<Item = u32>>> {
Box::new(async { [] })
}
}
fn main() {}