manual_let_else
suggests incorrect code change
#13768
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
Having a
ref
modifier in thematch
statement is incorrectly dropped from the suggested codeReproducer
I tried this code:
I expected the
match value {...}
statement to be converted to this:Instead, the suggestion is missing the
ref
keywordVersion
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: