needless_return_with_question_mark when inside let ... else
#11613
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
I use a
return
so that my type checks pass, but this lint now wants me to remove thereturn
which breaks my types.Lint Name
needless_return_with_question_mark
Reproducer
I tried this code:
I saw this happen:
But when I fix that:
I now get this error:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: