3 #[warn(clippy::manual_range_contains)]
5 #[allow(clippy::no_effect)]
6 #[allow(clippy::short_circuit_statement)]
7 #[allow(clippy::unnecessary_operation)]
11 // order shouldn't matter
16 // also with inclusive ranges
26 // also with the outside of inclusive ranges
31 // not a range.contains
32 x > 8 && x < 12; // lower bound not inclusive
33 x < 8 && x <= 12; // same direction
34 x >= 12 && 12 >= x; // same bounds
35 x < 8 && x > 12; // wrong direction
49 pub const fn in_range(a: i32) -> bool {