RS.CLIPPY.IMPOSSIBLE_COMPARISONS

Double comparisons that will never evaluate to `true`

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: impossible_comparisons. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for double comparisons that can never succeed

Why is this bad?

The whole expression can be replaced by false, which is probably not the programmer's intention

Example

if status_code <= 400 && status_code > 500 {}