Bad suggestion for field_reassign_with_default
when generics are involved
#6944
Labels
C-bug
Category: Clippy is not doing the correct thing
I tried this code:
I expected to see this happen:
Generics are handled correctly like the following:
Instead, this happened:
Suggestion is missing the use of
::
just before generic types, leading to a compile-time error.The text was updated successfully, but these errors were encountered: