1
Fork 0

Specific labels when referring to "expected" and "found" types

This commit is contained in:
Esteban Küber 2019-11-13 14:16:56 -08:00
parent a0d40f8bdf
commit 83ffda5216
406 changed files with 1598 additions and 1518 deletions

View file

@ -73,7 +73,7 @@ LL | fn rethrow_targets_async_block_not_fn() -> Result<u8, MyErr> {
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
= note: expected type `std::result::Result<u8, MyErr>`
= note: expected enum `std::result::Result<u8, MyErr>`
found type `()`
error[E0308]: mismatched types
@ -84,7 +84,7 @@ LL | fn rethrow_targets_async_block_not_async_fn() -> Result<u8, MyErr> {
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
= note: expected type `std::result::Result<u8, MyErr>`
= note: expected enum `std::result::Result<u8, MyErr>`
found type `()`
error: aborting due to 8 previous errors