Calling and_then
on Option<String>
with a function that takes &str
could provide a more helpful diagnostic
#106342
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d2e7d8643e1ae76544e6f0f1a117230b
The current output is:
The solution is to change:
It would be nice if rustc told me this.
The text was updated successfully, but these errors were encountered: