from_over_into auto fix breaks type inference #14012
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
Accepting the fix to convert
impl Into
toimpl From
causes a type inference error in the following exampleI'm not 100% sure whether this is a clippy bug or a rustc bug.
Lint Name
from_over_into
Reproducer
I tried this code (as generated by the fix):
I saw this happen:
playground
I expected to see this happen:
compile without errors
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: