Should Result::ok() be #[must_use]? #138413
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.
Code
Current output
Desired output
Rationale and extra context
Same for Result::err() of course. Option::ok_or() is already must_use since it returns Result.
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: