1 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2 --> $DIR/absurd-extreme-comparisons.rs:14:5
7 = note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
8 = help: because `0` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `u == 0` instead
10 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
11 --> $DIR/absurd-extreme-comparisons.rs:15:5
16 = help: because `Z` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `u == Z` instead
18 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
19 --> $DIR/absurd-extreme-comparisons.rs:16:5
24 = help: because `Z` is the minimum value for this type, this comparison is always false
26 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
27 --> $DIR/absurd-extreme-comparisons.rs:17:5
32 = help: because `Z` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `Z == u` instead
34 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
35 --> $DIR/absurd-extreme-comparisons.rs:18:5
40 = help: because `Z` is the minimum value for this type, this comparison is always false
42 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
43 --> $DIR/absurd-extreme-comparisons.rs:19:5
45 LL | u > std::u32::MAX;
48 = help: because `std::u32::MAX` is the maximum value for this type, this comparison is always false
50 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
51 --> $DIR/absurd-extreme-comparisons.rs:20:5
53 LL | u >= std::u32::MAX;
56 = help: because `std::u32::MAX` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `u == std::u32::MAX` instead
58 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
59 --> $DIR/absurd-extreme-comparisons.rs:21:5
61 LL | std::u32::MAX < u;
64 = help: because `std::u32::MAX` is the maximum value for this type, this comparison is always false
66 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
67 --> $DIR/absurd-extreme-comparisons.rs:22:5
69 LL | std::u32::MAX <= u;
72 = help: because `std::u32::MAX` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `std::u32::MAX == u` instead
74 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
75 --> $DIR/absurd-extreme-comparisons.rs:23:5
80 = help: because `1-1` is the minimum value for this type, this comparison is always false
82 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
83 --> $DIR/absurd-extreme-comparisons.rs:24:5
88 = help: because `!0` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `u == !0` instead
90 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
91 --> $DIR/absurd-extreme-comparisons.rs:25:5
96 = help: because `12 - 2*6` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `u == 12 - 2*6` instead
98 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
99 --> $DIR/absurd-extreme-comparisons.rs:27:5
104 = help: because `-127 - 1` is the minimum value for this type, this comparison is always false
106 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
107 --> $DIR/absurd-extreme-comparisons.rs:28:5
109 LL | std::i8::MAX >= i;
112 = help: because `std::i8::MAX` is the maximum value for this type, this comparison is always true
114 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
115 --> $DIR/absurd-extreme-comparisons.rs:29:5
117 LL | 3-7 < std::i32::MIN;
118 | ^^^^^^^^^^^^^^^^^^^
120 = help: because `std::i32::MIN` is the minimum value for this type, this comparison is always false
122 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
123 --> $DIR/absurd-extreme-comparisons.rs:31:5
128 = help: because `true` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `b == true` instead
130 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
131 --> $DIR/absurd-extreme-comparisons.rs:32:5
136 = help: because `false` is the minimum value for this type, this comparison is always false
138 error: <-comparison of unit values detected. This will always be false
139 --> $DIR/absurd-extreme-comparisons.rs:35:5
144 = note: `#[deny(clippy::unit_cmp)]` on by default
146 error: aborting due to 18 previous errors