question mark and try!
obscure type inference errors
#38508
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
has the confusing error message
replacing the
?
with.unwrap()
gives a nicer explanation of the problem (try!
gives the same error message as?
)The text was updated successfully, but these errors were encountered: