Skip to content

Commit 45a5bc7

Browse files
committed
fix tests
1 parent bc1a4f5 commit 45a5bc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/ui/async-await/async-block-control-flow-static-semantics.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ error[E0308]: mismatched types
1616
LL | fn return_targets_async_block_not_fn() -> u8 {
1717
| --------------------------------- ^^ expected u8, found ()
1818
| |
19-
| this function's body doesn't return
19+
| implicitly returns `()` as its body has no tail or `return` expression
2020
|
2121
= note: expected type `u8`
2222
found type `()`
@@ -57,7 +57,7 @@ error[E0308]: mismatched types
5757
LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
5858
| ---------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
5959
| |
60-
| this function's body doesn't return
60+
| implicitly returns `()` as its body has no tail or `return` expression
6161
|
6262
= note: expected type `std::result::Result<u8, MyErr>`
6363
found type `()`
@@ -68,7 +68,7 @@ error[E0308]: mismatched types
6868
LL | fn rethrow_targets_async_block_not_async_fn() -> Result<u8, MyErr> {
6969
| ---------------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
7070
| |
71-
| this function's body doesn't return
71+
| implicitly returns `()` as its body has no tail or `return` expression
7272
|
7373
= note: expected type `std::result::Result<u8, MyErr>`
7474
found type `()`

0 commit comments

Comments
 (0)