redundant_guards suggests change that doesn't compile for matching on CStr #13681
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
Clippy emits a suggestion that doesn't compile when matching on a CStr.
Lint Name
redundant_guards
Reproducer
I tried this code:
I saw this happen:
Making this change does not compile:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: