mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
271 B
Rust
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() {}
|