File tree 1 file changed +3
-3
lines changed
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
16
16
LL | fn return_targets_async_block_not_fn() -> u8 {
17
17
| --------------------------------- ^^ expected u8, found ()
18
18
| |
19
- | this function's body doesn't return
19
+ | implicitly returns `()` as its body has no tail or ` return` expression
20
20
|
21
21
= note: expected type `u8`
22
22
found type `()`
@@ -57,7 +57,7 @@ error[E0308]: mismatched types
57
57
LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
58
58
| ---------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
59
59
| |
60
- | this function's body doesn't return
60
+ | implicitly returns `()` as its body has no tail or ` return` expression
61
61
|
62
62
= note: expected type `std::result::Result<u8, MyErr>`
63
63
found type `()`
@@ -68,7 +68,7 @@ error[E0308]: mismatched types
68
68
LL | fn rethrow_targets_async_block_not_async_fn() -> Result<u8, MyErr> {
69
69
| ---------------------------------------- ^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
70
70
| |
71
- | this function's body doesn't return
71
+ | implicitly returns `()` as its body has no tail or ` return` expression
72
72
|
73
73
= note: expected type `std::result::Result<u8, MyErr>`
74
74
found type `()`
You can’t perform that action at this time.
0 commit comments