field-reassign-with-default lint gives false positives because it doesn't consider if all fields are public #6515
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: field-reassign-with-default
I tried this code:
I expected to see this happen: No warning because
Doesn't compile:
Instead, this happened: I got a warning:
Meta
cargo clippy -V
: clippy 0.0.212 (e1884a8 2020-12-29)rustc -Vv
:The text was updated successfully, but these errors were encountered: