Skip to content

Commit e2a50de

Browse files
committed
Use more minimized test.
1 parent a7f6095 commit e2a50de

File tree

2 files changed

+6
-38
lines changed

2 files changed

+6
-38
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Test for issue #132429
22
//@compile-flags: -Zunstable-options --edition=2024
3+
//@check-pass
34

4-
trait ThreeCellFragment {
5-
fn ext_cells<'a>(
6-
&'a self,
7-
) -> dyn core::future::Future<Output = impl IntoIterator<Item = u32>> + 'a {
8-
//~^ ERROR mismatched types
9-
//~| ERROR return type cannot have an unboxed trait object
5+
use std::future::Future;
6+
7+
trait Test {
8+
fn foo<'a>(&'a self) -> Box<dyn Future<Output = impl IntoIterator<Item = u32>>> {
9+
Box::new(async { [] })
1010
}
1111
}
1212

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

-32
This file was deleted.

0 commit comments

Comments
 (0)