diff options
| author | Michael Goulet <michael@errs.io> | 2022-08-08 00:13:41 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-08-08 00:13:41 +0000 |
| commit | 3fdf3cb80cc262e71461b6809b0e320a1958b03c (patch) | |
| tree | bd331bf189b6b6801a5f6f673ff1d1fc0d1ea834 /src/test/ui/async-await/async-block-control-flow-static-semantics.stderr | |
| parent | 750f04d30973b5615e54ee27c7336846d19943ee (diff) | |
| download | rust-3fdf3cb80cc262e71461b6809b0e320a1958b03c.tar.gz rust-3fdf3cb80cc262e71461b6809b0e320a1958b03c.zip | |
Adjust wording
Diffstat (limited to 'src/test/ui/async-await/async-block-control-flow-static-semantics.stderr')
| -rw-r--r-- | src/test/ui/async-await/async-block-control-flow-static-semantics.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/async-await/async-block-control-flow-static-semantics.stderr b/src/test/ui/async-await/async-block-control-flow-static-semantics.stderr index 3d9adc04e17..2a08d5d6ce5 100644 --- a/src/test/ui/async-await/async-block-control-flow-static-semantics.stderr +++ b/src/test/ui/async-await/async-block-control-flow-static-semantics.stderr @@ -31,7 +31,7 @@ LL | | LL | | } | |_^ expected `u8`, found `()` -error[E0271]: expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8` +error[E0271]: expected `impl Future<Output = u8>` to be a future that resolves to `()`, but it resolves to `u8` --> $DIR/async-block-control-flow-static-semantics.rs:26:39 | LL | let _: &dyn Future<Output = ()> = █ @@ -47,7 +47,7 @@ LL | fn return_targets_async_block_not_fn() -> u8 { | | | implicitly returns `()` as its body has no tail or `return` expression -error[E0271]: expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8` +error[E0271]: expected `impl Future<Output = u8>` to be a future that resolves to `()`, but it resolves to `u8` --> $DIR/async-block-control-flow-static-semantics.rs:17:39 | LL | let _: &dyn Future<Output = ()> = █ @@ -56,7 +56,7 @@ LL | let _: &dyn Future<Output = ()> = █ = note: required for the cast from `impl Future<Output = u8>` to the object type `dyn Future<Output = ()>` error[E0308]: mismatched types - --> $DIR/async-block-control-flow-static-semantics.rs:47:44 + --> $DIR/async-block-control-flow-static-semantics.rs:49:44 | LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> { | ---------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()` @@ -67,7 +67,7 @@ LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> { found unit type `()` error[E0308]: mismatched types - --> $DIR/async-block-control-flow-static-semantics.rs:56:50 + --> $DIR/async-block-control-flow-static-semantics.rs:58:50 | LL | fn rethrow_targets_async_block_not_async_fn() -> Result<u8, MyErr> { | ---------------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()` |
