31
31
LL | | }
32
32
| |_^ expected `u8`, found `()`
33
33
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`
35
35
--> $DIR/async-block-control-flow-static-semantics.rs:26:39
36
36
|
37
37
LL | let _: &dyn Future<Output = ()> = █
@@ -47,7 +47,7 @@ LL | fn return_targets_async_block_not_fn() -> u8 {
47
47
| |
48
48
| implicitly returns `()` as its body has no tail or `return` expression
49
49
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`
51
51
--> $DIR/async-block-control-flow-static-semantics.rs:17:39
52
52
|
53
53
LL | let _: &dyn Future<Output = ()> = █
@@ -56,7 +56,7 @@ LL | let _: &dyn Future<Output = ()> = █
56
56
= note: required for the cast from `impl Future<Output = u8>` to the object type `dyn Future<Output = ()>`
57
57
58
58
error[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
60
60
|
61
61
LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
62
62
| ---------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()`
@@ -67,7 +67,7 @@ LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
67
67
found unit type `()`
68
68
69
69
error[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
71
71
|
72
72
LL | fn rethrow_targets_async_block_not_async_fn() -> Result<u8, MyErr> {
73
73
| ---------------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()`
0 commit comments