Skip to content

Commit

Permalink
Fix tests after beta backport
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jul 15, 2022
1 parent 650421c commit 647922f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/type-alias-impl-trait/issue-98604.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LL | async fn test() {}
| ^ checked the `Output` of this `async fn`, found opaque type
= note: expected struct `Pin<Box<(dyn Future<Output = ()> + 'static)>>`
found opaque type `impl Future<Output = ()>`
= note: required for the cast from `fn() -> impl Future<Output = ()> {test}` to the object type `dyn Fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>>`
= note: required for the cast to the object type `dyn Fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>>`

error: aborting due to previous error

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/type-alias-impl-trait/issue-98608.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LL | let b: Box<dyn Fn() -> Box<u8>> = Box::new(hi);
|
= note: expected struct `Box<u8>`
found opaque type `impl Sized`
= note: required for the cast from `fn() -> impl Sized {hi}` to the object type `dyn Fn() -> Box<u8>`
= note: required for the cast to the object type `dyn Fn() -> Box<u8>`

error: aborting due to previous error

Expand Down

0 comments on commit 647922f

Please sign in to comment.