about summary refs log tree commit diff
path: root/tests/ui/async-await/async-block-control-flow-static-semantics.stderr
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-05-11 02:10:56 +0000
committerMichael Goulet <michael@errs.io>2023-05-12 00:10:52 +0000
commit14bf909e71209fc946f35ffba8ae6572c9575715 (patch)
tree7e74098b379efd7a09f59b8e17f6c820d7202c16 /tests/ui/async-await/async-block-control-flow-static-semantics.stderr
parent2a8221dbdfd180a2d56d4b0089f4f3952d8c2bcd (diff)
downloadrust-14bf909e71209fc946f35ffba8ae6572c9575715.tar.gz
rust-14bf909e71209fc946f35ffba8ae6572c9575715.zip
Note base types of coercion
Diffstat (limited to 'tests/ui/async-await/async-block-control-flow-static-semantics.stderr')
-rw-r--r--tests/ui/async-await/async-block-control-flow-static-semantics.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/async-await/async-block-control-flow-static-semantics.stderr b/tests/ui/async-await/async-block-control-flow-static-semantics.stderr
index a6dbb071614..bbd5a822d8d 100644
--- a/tests/ui/async-await/async-block-control-flow-static-semantics.stderr
+++ b/tests/ui/async-await/async-block-control-flow-static-semantics.stderr
@@ -35,7 +35,7 @@ error[E0271]: expected `[async block@$DIR/async-block-control-flow-static-semant
 LL |     let _: &dyn Future<Output = ()> = &block;
    |                                       ^^^^^^ expected `()`, found `u8`
    |
-   = note: required for the cast from `[async block@$DIR/async-block-control-flow-static-semantics.rs:23:17: 25:6]` to the object type `dyn Future<Output = ()>`
+   = note: required for the cast from `&[async block@$DIR/async-block-control-flow-static-semantics.rs:23:17: 25:6]` to `&dyn Future<Output = ()>`
 
 error[E0308]: mismatched types
   --> $DIR/async-block-control-flow-static-semantics.rs:12:43
@@ -51,7 +51,7 @@ error[E0271]: expected `[async block@$DIR/async-block-control-flow-static-semant
 LL |     let _: &dyn Future<Output = ()> = &block;
    |                                       ^^^^^^ expected `()`, found `u8`
    |
-   = note: required for the cast from `[async block@$DIR/async-block-control-flow-static-semantics.rs:14:17: 16:6]` to the object type `dyn Future<Output = ()>`
+   = note: required for the cast from `&[async block@$DIR/async-block-control-flow-static-semantics.rs:14:17: 16:6]` to `&dyn Future<Output = ()>`
 
 error[E0308]: mismatched types
   --> $DIR/async-block-control-flow-static-semantics.rs:49:44