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.rs | |
| 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.rs')
| -rw-r--r-- | src/test/ui/async-await/async-block-control-flow-static-semantics.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/ui/async-await/async-block-control-flow-static-semantics.rs b/src/test/ui/async-await/async-block-control-flow-static-semantics.rs index 3f8cb7a5291..446212ca767 100644 --- a/src/test/ui/async-await/async-block-control-flow-static-semantics.rs +++ b/src/test/ui/async-await/async-block-control-flow-static-semantics.rs @@ -15,7 +15,7 @@ fn return_targets_async_block_not_fn() -> u8 { return 0u8; }; let _: &dyn Future<Output = ()> = █ - //~^ ERROR expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8` + //~^ ERROR expected `impl Future<Output = u8>` to be a future that resolves to `()`, but it resolves to `u8` } async fn return_targets_async_block_not_async_fn() -> u8 { @@ -24,7 +24,7 @@ async fn return_targets_async_block_not_async_fn() -> u8 { return 0u8; }; let _: &dyn Future<Output = ()> = █ - //~^ ERROR expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8` + //~^ ERROR expected `impl Future<Output = u8>` to be a future that resolves to `()`, but it resolves to `u8` } fn no_break_in_async_block() { @@ -42,7 +42,9 @@ fn no_break_in_async_block_even_with_outer_loop() { } struct MyErr; -fn err() -> Result<u8, MyErr> { Err(MyErr) } +fn err() -> Result<u8, MyErr> { + Err(MyErr) +} fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> { //~^ ERROR mismatched types |
