mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
14 lines
237 B
Rust
14 lines
237 B
Rust
// Test for issue #132429
|
|
//@ 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() {}
|