rust/tests/ui/impl-trait/in-trait/late-bound-in-object-assocty.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
237 B
Rust
Raw Normal View History

// Test for issue #132429
2024-11-22 15:20:22 +00:00
//@ edition: 2024
2024-11-01 18:00:36 +00:00
//@check-pass
2024-11-01 18:00:36 +00:00
use std::future::Future;
trait Test {
fn foo<'a>(&'a self) -> Box<dyn Future<Output = impl IntoIterator<Item = u32>>> {
Box::new(async { [] })
}
}
fn main() {}