Commit Graph

2 Commits

Author SHA1 Message Date
Esteban Küber
e26ad8b67d Properly suggest E::assoc when we encounter E::Variant::assoc
Use the right span when encountering an enum variant followed by an associated item so we don't lose the associated item in the resulting code.

Do not suggest the thing twice, once as a removal of the associated item and a second time as a typo suggestion.
2024-11-03 18:55:19 +00:00
Esteban Küber
06fc531c96 Add test for assoc fn suggestion on enum variant 2024-11-03 17:15:22 +00:00