False positive of box_default #9639
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
Box::default()
will not work if the input isBox<dyn trait>
.Lint Name
box_default
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
Compile OK.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: