"explicit destructor calls not allowed" error message #72322
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Many of rustc errors contain a hint on how to fix them, but not this one. For example:
I suppose the error message can be more friendly by suggesting to use
drop(s)
instead ofs.drop()
.The text was updated successfully, but these errors were encountered: