2017-02-07 14:05:30 -06:00
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:10:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
10 | u <= 0;
2017-02-07 14:05:30 -06:00
| ^^^^^^
|
2017-05-17 07:19:44 -05:00
= note: `-D absurd-extreme-comparisons` implied by `-D warnings`
2017-02-07 14:05:30 -06: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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:11:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
11 | u <= Z;
2017-02-07 14:05:30 -06: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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:12:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
12 | u < Z;
2017-02-07 14:05:30 -06:00
| ^^^^^
|
= help: because Z is the minimum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:13:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
13 | Z >= u;
2017-02-07 14:05:30 -06: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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:14:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
14 | Z > u;
2017-02-07 14:05:30 -06:00
| ^^^^^
|
= help: because Z is the minimum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:15:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
15 | u > std::u32::MAX;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^^^^^^
|
= help: because std::u32::MAX is the maximum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:16:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
16 | u >= std::u32::MAX;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^^^^^^^
|
= 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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:17:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
17 | std::u32::MAX < u;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^^^^^^
|
= help: because std::u32::MAX is the maximum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:18:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
18 | std::u32::MAX <= u;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^^^^^^^
|
= 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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:19:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
19 | 1-1 > u;
2017-02-07 14:05:30 -06:00
| ^^^^^^^
|
= help: because 1-1 is the minimum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:20:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
20 | u >= !0;
2017-02-07 14:05:30 -06: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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:21:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
21 | u <= 12 - 2*6;
2017-02-07 14:05:30 -06: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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:23:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
23 | i < -127 - 1;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^
|
= help: because -127 - 1 is the minimum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:24:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
24 | std::i8::MAX >= i;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^^^^^^
|
= help: because std::i8::MAX is the maximum value for this type, this comparison is always true
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:25:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
25 | 3-7 < std::i32::MIN;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^^^^^^^^^^^
|
= help: because std::i32::MIN is the minimum value for this type, this comparison is always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:27:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
27 | b >= true;
2017-02-07 14:05:30 -06: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
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:28:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
28 | false > b;
2017-02-07 14:05:30 -06:00
| ^^^^^^^^^
|
= help: because false is the minimum value for this type, this comparison is always false
2017-05-17 07:19:44 -05:00
error: <-comparison of unit values detected. This will always be false
2017-08-01 10:54:21 -05:00
--> $DIR/absurd-extreme-comparisons.rs:31:5
2017-02-07 14:05:30 -06:00
|
2017-05-10 06:38:17 -05:00
31 | () < {};
2017-02-07 14:05:30 -06:00
| ^^^^^^^
|
2018-03-28 16:49:32 -05:00
= note: #[deny(unit_cmp)] on by default
2017-05-17 07:19:44 -05:00
2018-01-16 10:06:27 -06:00
error: aborting due to 18 previous errors