]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/absurd-extreme-comparisons.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / absurd-extreme-comparisons.stderr
1 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2   --> absurd-extreme-comparisons.rs:10:5
3    |
4 10 |     u <= 0;
5    |     ^^^^^^
6    |
7    = note: `-D 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
9
10 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
11   --> absurd-extreme-comparisons.rs:11:5
12    |
13 11 |     u <= Z;
14    |     ^^^^^^
15    |
16    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
17    = 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
19 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
20   --> absurd-extreme-comparisons.rs:12:5
21    |
22 12 |     u < Z;
23    |     ^^^^^
24    |
25    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
26    = help: because Z is the minimum value for this type, this comparison is always false
27
28 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
29   --> absurd-extreme-comparisons.rs:13:5
30    |
31 13 |     Z >= u;
32    |     ^^^^^^
33    |
34    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
35    = 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
36
37 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
38   --> absurd-extreme-comparisons.rs:14:5
39    |
40 14 |     Z > u;
41    |     ^^^^^
42    |
43    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
44    = help: because Z is the minimum value for this type, this comparison is always false
45
46 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
47   --> absurd-extreme-comparisons.rs:15:5
48    |
49 15 |     u > std::u32::MAX;
50    |     ^^^^^^^^^^^^^^^^^
51    |
52    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
53    = help: because std::u32::MAX is the maximum value for this type, this comparison is always false
54
55 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
56   --> absurd-extreme-comparisons.rs:16:5
57    |
58 16 |     u >= std::u32::MAX;
59    |     ^^^^^^^^^^^^^^^^^^
60    |
61    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
62    = 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
63
64 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
65   --> absurd-extreme-comparisons.rs:17:5
66    |
67 17 |     std::u32::MAX < u;
68    |     ^^^^^^^^^^^^^^^^^
69    |
70    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
71    = help: because std::u32::MAX is the maximum value for this type, this comparison is always false
72
73 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
74   --> absurd-extreme-comparisons.rs:18:5
75    |
76 18 |     std::u32::MAX <= u;
77    |     ^^^^^^^^^^^^^^^^^^
78    |
79    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
80    = 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
81
82 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
83   --> absurd-extreme-comparisons.rs:19:5
84    |
85 19 |     1-1 > u;
86    |     ^^^^^^^
87    |
88    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
89    = help: because 1-1 is the minimum value for this type, this comparison is always false
90
91 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
92   --> absurd-extreme-comparisons.rs:20:5
93    |
94 20 |     u >= !0;
95    |     ^^^^^^^
96    |
97    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
98    = 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
99
100 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
101   --> absurd-extreme-comparisons.rs:21:5
102    |
103 21 |     u <= 12 - 2*6;
104    |     ^^^^^^^^^^^^^
105    |
106    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
107    = 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
108
109 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
110   --> absurd-extreme-comparisons.rs:23:5
111    |
112 23 |     i < -127 - 1;
113    |     ^^^^^^^^^^^^
114    |
115    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
116    = help: because -127 - 1 is the minimum value for this type, this comparison is always false
117
118 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
119   --> absurd-extreme-comparisons.rs:24:5
120    |
121 24 |     std::i8::MAX >= i;
122    |     ^^^^^^^^^^^^^^^^^
123    |
124    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
125    = help: because std::i8::MAX is the maximum value for this type, this comparison is always true
126
127 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
128   --> absurd-extreme-comparisons.rs:25:5
129    |
130 25 |     3-7 < std::i32::MIN;
131    |     ^^^^^^^^^^^^^^^^^^^
132    |
133    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
134    = help: because std::i32::MIN is the minimum value for this type, this comparison is always false
135
136 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
137   --> absurd-extreme-comparisons.rs:27:5
138    |
139 27 |     b >= true;
140    |     ^^^^^^^^^
141    |
142    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
143    = 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
144
145 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
146   --> absurd-extreme-comparisons.rs:28:5
147    |
148 28 |     false > b;
149    |     ^^^^^^^^^
150    |
151    = note: `-D absurd-extreme-comparisons` implied by `-D warnings`
152    = help: because false is the minimum value for this type, this comparison is always false
153
154 error: <-comparison of unit values detected. This will always be false
155   --> absurd-extreme-comparisons.rs:31:5
156    |
157 31 |     () < {};
158    |     ^^^^^^^
159    |
160    = note: `-D unit-cmp` implied by `-D warnings`
161
162 error: aborting due to previous error(s)
163
164
165 To learn more, run the command again with --verbose.