unnecessary-operation
suggestion on [();1][<expr>]
is werid
#12817
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
Because of my minimal rust version (1.56), I have to use the hack
[(); 1][<expr>]
in const block for const assertions.Lint Name
unnecessary-operation
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: It's my fault for using nightly clippy for msrv, however I expect that clippy should suggest
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: