blob: 42b33c6e31d3c0d89af330d8c78b925818fafd74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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() {}
|