#[must_use] on associated function definition when trait declaration does not have it should still trigger warning when calling function concretely #48486
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I expect the following code (Playpen) to emit a warning on the last line of
main
that the result ofs.the_must_use_fn()
must be used.Ref #43302 as the tracking issue for this feature.
The text was updated successfully, but these errors were encountered: