Specific labels when referring to "expected" and "found" types
This commit is contained in:
parent
a0d40f8bdf
commit
83ffda5216
406 changed files with 1598 additions and 1518 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue