Add explanatory message for [#must_use]
on std::ops::Add
et al
#103320
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 (playground):
The current output is:
Ideally the output should include:
Precedent
Many other
std
methods have this exactmust_use
message, e.g. (playground):which gives the warning:
The text was updated successfully, but these errors were encountered: