2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2019-01-07 21:33:18 +00:00
--> $DIR/absurd-extreme-comparisons.rs:14:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | u <= 0;
2017-02-07 20:05:30 +00:00
| ^^^^^^
|
2020-01-06 06:36:33 +00:00
= 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
2022-09-22 16:04:22 +00:00
= note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:16:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | u <= Z;
2017-02-07 20:05:30 +00:00
| ^^^^^^
|
2020-01-06 06:36:33 +00:00
= 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
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:18:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | u < Z;
2017-02-07 20:05:30 +00:00
| ^^^^^
|
2020-01-06 06:36:33 +00:00
= help: because `Z` is the minimum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:20:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | Z >= u;
2017-02-07 20:05:30 +00:00
| ^^^^^^
|
2020-01-06 06:36:33 +00:00
= 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
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:22:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | Z > u;
2017-02-07 20:05:30 +00:00
| ^^^^^
|
2020-01-06 06:36:33 +00:00
= help: because `Z` is the minimum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:24:5
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
LL | u > u32::MAX;
| ^^^^^^^^^^^^
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
= help: because `u32::MAX` is the maximum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:26:5
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
LL | u >= u32::MAX;
| ^^^^^^^^^^^^^
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
= help: because `u32::MAX` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `u == u32::MAX` instead
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:28:5
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
LL | u32::MAX < u;
| ^^^^^^^^^^^^
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
= help: because `u32::MAX` is the maximum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:30:5
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
LL | u32::MAX <= u;
| ^^^^^^^^^^^^^
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
= help: because `u32::MAX` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `u32::MAX == u` instead
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:32:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | 1-1 > u;
2017-02-07 20:05:30 +00:00
| ^^^^^^^
|
2020-01-06 06:36:33 +00:00
= help: because `1-1` is the minimum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:34:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | u >= !0;
2017-02-07 20:05:30 +00:00
| ^^^^^^^
|
2020-01-06 06:36:33 +00:00
= 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
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:36:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | u <= 12 - 2*6;
2017-02-07 20:05:30 +00:00
| ^^^^^^^^^^^^^
|
2020-01-06 06:36:33 +00:00
= 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
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:39:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | i < -127 - 1;
2017-02-07 20:05:30 +00:00
| ^^^^^^^^^^^^
|
2020-01-06 06:36:33 +00:00
= help: because `-127 - 1` is the minimum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:41:5
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
LL | i8::MAX >= i;
| ^^^^^^^^^^^^
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
= help: because `i8::MAX` is the maximum value for this type, this comparison is always true
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:43:5
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
LL | 3-7 < i32::MIN;
| ^^^^^^^^^^^^^^
2017-02-07 20:05:30 +00:00
|
2020-04-07 22:04:33 +00:00
= help: because `i32::MIN` is the minimum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:46:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | b >= true;
2017-02-07 20:05:30 +00:00
| ^^^^^^^^^
|
2020-01-06 06:36:33 +00:00
= 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
2017-02-07 20:05:30 +00:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:48:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | false > b;
2017-02-07 20:05:30 +00:00
| ^^^^^^^^^
|
2020-01-06 06:36:33 +00:00
= help: because `false` is the minimum value for this type, this comparison is always false
2017-02-07 20:05:30 +00:00
2017-05-17 12:19:44 +00:00
error: <-comparison of unit values detected. This will always be false
2023-07-28 19:35:48 +00:00
--> $DIR/absurd-extreme-comparisons.rs:52:5
2017-02-07 20:05:30 +00:00
|
2018-12-27 15:57:55 +00:00
LL | () < {};
2017-02-07 20:05:30 +00:00
| ^^^^^^^
|
2019-07-18 22:35:32 +00:00
= note: `#[deny(clippy::unit_cmp)]` on by default
2017-05-17 12:19:44 +00:00
2018-01-16 16:06:27 +00:00
error: aborting due to 18 previous errors