never_loop
false positive with struct expressions
#9001
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
never_loop
does not pick upcontinue
in struct expression fields.Lint Name
never_loop
Reproducer
I tried this code:
(playground)
I saw this happen:
I expected no error, since it will loop forever.
Version
The text was updated successfully, but these errors were encountered: