Better error messages when mixing io::Result and non io::Result #62125
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
See the following playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=98bf237ffb9961d9d598c4ed16194517
A better error message can suggest writing the nested function as:
Ok(bar()?)
The text was updated successfully, but these errors were encountered: