Unused assignment warning should trigger for structs #16789
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code should ideally trigger warnings about unused assignments, but it doesn't.
It could be useful in situations like this:
The text was updated successfully, but these errors were encountered: