Open
Description
Sometimes it would be really helpful if the compiler could "reach into" a Result or Option. Say one forgets to ?
or even .unwrap()
, the compiler currently says something like "no method named get_ref
found for enum std::result::Result<tokio_rustls::client::TlsStream<tokio::net::TcpStream>, std::io::Error>
in the current scope". It would be helpful if it would say something along the line of ".. but contained type T contains the requested method".
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Diagnostics: Confusing error or lint; hard to understand for new users.Relevant to the compiler team, which will review and decide on the PR/issue.