derivable_impl
false positive when Default
is implemented manually to structs with a dyn
field
#10158
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
Summary
false positive with
derivable_impl
ifDefault
is implemented manually to a struct havingBox<dyn Trait>
field, andDefault
implementation implementsDefault
Lint Name
derivable_impl
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
derivable_impl
is not invoked.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: