about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2022-07-09 18:16:53 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2022-07-15 17:57:32 -0400
commit647922f9d8a6f1fa639ab206e60a76d43cc9d3dd (patch)
tree3c0903d6cb6800cbf43017141fc38b669a360386
parent650421c07156415e270b6456b0194c9094edd639 (diff)
downloadrust-647922f9d8a6f1fa639ab206e60a76d43cc9d3dd.tar.gz
rust-647922f9d8a6f1fa639ab206e60a76d43cc9d3dd.zip
Fix tests after beta backport
-rw-r--r--src/test/ui/type-alias-impl-trait/issue-98604.stderr2
-rw-r--r--src/test/ui/type-alias-impl-trait/issue-98608.stderr2
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 f04d1b4d787..ad3982760c3 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<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
 
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 8f3ec7d9d16..6773b01112d 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<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