Skip to content

Commit e2a50de

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

2 files changed

Lines changed: 6 additions & 38 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
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-
traitThreeCellFragment{
5-
fnext_cells<'a>(
6-
&'aself,
7-
) -> dyn core::future::Future<Output = implIntoIterator<Item = u32>> + 'a{
8-
//~^ ERROR mismatched types
9-
//~| ERROR return type cannot have an unboxed trait object
5+
use std::future::Future;
6+
7+
traitTest{
8+
fnfoo<'a>(&'aself) -> Box<dynFuture<Output = implIntoIterator<Item = u32>>>{
9+
Box::new(async{[]})
1010
}
1111
}
1212

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

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)