Skip to content

Commit

Permalink
Use more minimized test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Nov 1, 2024
1 parent a7f6095 commit e2a50de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 38 deletions.
12 changes: 6 additions & 6 deletions tests/ui/impl-trait/in-trait/late-bound-in-object-assocty.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Test for issue #132429
//@compile-flags: -Zunstable-options --edition=2024
//@check-pass

trait ThreeCellFragment {
fn ext_cells<'a>(
&'a self,
) -> dyn core::future::Future<Output = impl IntoIterator<Item = u32>> + 'a {
//~^ ERROR mismatched types
//~| ERROR return type cannot have an unboxed trait object
use std::future::Future;

trait Test {
fn foo<'a>(&'a self) -> Box<dyn Future<Output = impl IntoIterator<Item = u32>>> {
Box::new(async { [] })
}
}

Expand Down
32 changes: 0 additions & 32 deletions tests/ui/impl-trait/in-trait/late-bound-in-object-assocty.stderr

This file was deleted.

0 comments on commit e2a50de

Please sign in to comment.