From 647922f9d8a6f1fa639ab206e60a76d43cc9d3dd Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sat, 9 Jul 2022 18:16:53 -0400 Subject: [PATCH] Fix tests after beta backport --- src/test/ui/type-alias-impl-trait/issue-98604.stderr | 2 +- src/test/ui/type-alias-impl-trait/issue-98608.stderr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/type-alias-impl-trait/issue-98604.stderr b/src/test/ui/type-alias-impl-trait/issue-98604.stderr index f04d1b4d7877e..ad3982760c39c 100644 --- a/src/test/ui/type-alias-impl-trait/issue-98604.stderr +++ b/src/test/ui/type-alias-impl-trait/issue-98604.stderr @@ -11,7 +11,7 @@ LL | async fn test() {} | ^ checked the `Output` of this `async fn`, found opaque type = note: expected struct `Pin + 'static)>>` found opaque type `impl Future` - = note: required for the cast from `fn() -> impl Future {test}` to the object type `dyn Fn() -> Pin + 'static)>>` + = note: required for the cast to the object type `dyn Fn() -> Pin + 'static)>>` error: aborting due to previous error diff --git a/src/test/ui/type-alias-impl-trait/issue-98608.stderr b/src/test/ui/type-alias-impl-trait/issue-98608.stderr index 8f3ec7d9d1616..6773b01112d87 100644 --- a/src/test/ui/type-alias-impl-trait/issue-98608.stderr +++ b/src/test/ui/type-alias-impl-trait/issue-98608.stderr @@ -9,7 +9,7 @@ LL | let b: Box Box> = Box::new(hi); | = note: expected struct `Box` found opaque type `impl Sized` - = note: required for the cast from `fn() -> impl Sized {hi}` to the object type `dyn Fn() -> Box` + = note: required for the cast to the object type `dyn Fn() -> Box` error: aborting due to previous error