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
271 B
Rust
Raw Normal View History

// Test for issue #132429
//@compile-flags: -Zunstable-options --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() {}