File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ error[E0308]: mismatched types
1616LL | 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
5757LL | 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
6868LL | 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 `()`
You can’t perform that action at this time.
0 commit comments