false positive: comparison_chain lint in const function even though cmp cannot be used #7082
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
Lint name: comparison_chain
I tried this code:
I expected to see this happen: no warning:
cmp
method cannot be used in const functionInstead, this happened:
Meta
cargo clippy -V
: clippy 0.1.51 (2fd73fab 2021-03-23)rustc -Vv
:The text was updated successfully, but these errors were encountered: