3131LL | | }
3232 | |_^ expected `u8`, found `()`
3333
34- error[E0271]: expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8`
34+ error[E0271]: expected `impl Future<Output = u8>` to be a future that resolves to `()`, but it resolves to `u8`
3535 --> $DIR/async-block-control-flow-static-semantics.rs:26:39
3636 |
3737LL | let _: &dyn Future<Output = ()> = █
@@ -47,7 +47,7 @@ LL | fn return_targets_async_block_not_fn() -> u8 {
4747 | |
4848 | implicitly returns `()` as its body has no tail or `return` expression
4949
50- error[E0271]: expected `impl Future<Output = u8>` to be a future that yields `()`, but it actually yields `u8`
50+ error[E0271]: expected `impl Future<Output = u8>` to be a future that resolves to `()`, but it resolves to `u8`
5151 --> $DIR/async-block-control-flow-static-semantics.rs:17:39
5252 |
5353LL | let _: &dyn Future<Output = ()> = █
@@ -56,7 +56,7 @@ LL | let _: &dyn Future<Output = ()> = █
5656 = note: required for the cast from `impl Future<Output = u8>` to the object type `dyn Future<Output = ()>`
5757
5858error[E0308]: mismatched types
59- --> $DIR/async-block-control-flow-static-semantics.rs:47 :44
59+ --> $DIR/async-block-control-flow-static-semantics.rs:49 :44
6060 |
6161LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
6262 | ---------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()`
@@ -67,7 +67,7 @@ LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
6767 found unit type `()`
6868
6969error[E0308]: mismatched types
70- --> $DIR/async-block-control-flow-static-semantics.rs:56 :50
70+ --> $DIR/async-block-control-flow-static-semantics.rs:58 :50
7171 |
7272LL | fn rethrow_targets_async_block_not_async_fn() -> Result<u8, MyErr> {
7373 | ---------------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()`
0 commit comments