]> git.lizzy.rs Git - rust.git/blob - tests/ui/invalid_upcast_comparisons.stderr
Merge remote-tracking branch 'origin/master' into 1537-drop_copy
[rust.git] / tests / ui / invalid_upcast_comparisons.stderr
1 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
2   --> $DIR/invalid_upcast_comparisons.rs:16:5
3    |
4 16 |     (u8 as u32) > 300;
5    |     ^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/invalid_upcast_comparisons.rs:4:9
9    |
10 4  | #![deny(invalid_upcast_comparisons)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
14   --> $DIR/invalid_upcast_comparisons.rs:17:5
15    |
16 17 |     (u8 as i32) > 300;
17    |     ^^^^^^^^^^^^^^^^^
18
19 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
20   --> $DIR/invalid_upcast_comparisons.rs:18:5
21    |
22 18 |     (u8 as u32) == 300;
23    |     ^^^^^^^^^^^^^^^^^^
24
25 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
26   --> $DIR/invalid_upcast_comparisons.rs:19:5
27    |
28 19 |     (u8 as i32) == 300;
29    |     ^^^^^^^^^^^^^^^^^^
30
31 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
32   --> $DIR/invalid_upcast_comparisons.rs:20:5
33    |
34 20 |     300 < (u8 as u32);
35    |     ^^^^^^^^^^^^^^^^^
36
37 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
38   --> $DIR/invalid_upcast_comparisons.rs:21:5
39    |
40 21 |     300 < (u8 as i32);
41    |     ^^^^^^^^^^^^^^^^^
42
43 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
44   --> $DIR/invalid_upcast_comparisons.rs:22:5
45    |
46 22 |     300 == (u8 as u32);
47    |     ^^^^^^^^^^^^^^^^^^
48
49 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
50   --> $DIR/invalid_upcast_comparisons.rs:23:5
51    |
52 23 |     300 == (u8 as i32);
53    |     ^^^^^^^^^^^^^^^^^^
54
55 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
56   --> $DIR/invalid_upcast_comparisons.rs:25:5
57    |
58 25 |     (u8 as u32) <= 300;
59    |     ^^^^^^^^^^^^^^^^^^
60
61 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
62   --> $DIR/invalid_upcast_comparisons.rs:26:5
63    |
64 26 |     (u8 as i32) <= 300;
65    |     ^^^^^^^^^^^^^^^^^^
66
67 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
68   --> $DIR/invalid_upcast_comparisons.rs:27:5
69    |
70 27 |     (u8 as u32) != 300;
71    |     ^^^^^^^^^^^^^^^^^^
72
73 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
74   --> $DIR/invalid_upcast_comparisons.rs:28:5
75    |
76 28 |     (u8 as i32) != 300;
77    |     ^^^^^^^^^^^^^^^^^^
78
79 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
80   --> $DIR/invalid_upcast_comparisons.rs:29:5
81    |
82 29 |     300 >= (u8 as u32);
83    |     ^^^^^^^^^^^^^^^^^^
84
85 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
86   --> $DIR/invalid_upcast_comparisons.rs:30:5
87    |
88 30 |     300 >= (u8 as i32);
89    |     ^^^^^^^^^^^^^^^^^^
90
91 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
92   --> $DIR/invalid_upcast_comparisons.rs:31:5
93    |
94 31 |     300 != (u8 as u32);
95    |     ^^^^^^^^^^^^^^^^^^
96
97 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
98   --> $DIR/invalid_upcast_comparisons.rs:32:5
99    |
100 32 |     300 != (u8 as i32);
101    |     ^^^^^^^^^^^^^^^^^^
102
103 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
104   --> $DIR/invalid_upcast_comparisons.rs:35:5
105    |
106 35 |     (u8 as i32) < 0;
107    |     ^^^^^^^^^^^^^^^
108
109 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
110   --> $DIR/invalid_upcast_comparisons.rs:36:5
111    |
112 36 |     -5 != (u8 as i32);
113    |     ^^^^^^^^^^^^^^^^^
114
115 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
116   --> $DIR/invalid_upcast_comparisons.rs:38:5
117    |
118 38 |     (u8 as i32) >= 0;
119    |     ^^^^^^^^^^^^^^^^
120
121 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
122   --> $DIR/invalid_upcast_comparisons.rs:39:5
123    |
124 39 |     -5 == (u8 as i32);
125    |     ^^^^^^^^^^^^^^^^^
126
127 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
128   --> $DIR/invalid_upcast_comparisons.rs:42:5
129    |
130 42 |     1337 == (u8 as i32);
131    |     ^^^^^^^^^^^^^^^^^^^
132
133 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
134   --> $DIR/invalid_upcast_comparisons.rs:43:5
135    |
136 43 |     1337 == (u8 as u32);
137    |     ^^^^^^^^^^^^^^^^^^^
138
139 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
140   --> $DIR/invalid_upcast_comparisons.rs:45:5
141    |
142 45 |     1337 != (u8 as i32);
143    |     ^^^^^^^^^^^^^^^^^^^
144
145 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
146   --> $DIR/invalid_upcast_comparisons.rs:46:5
147    |
148 46 |     1337 != (u8 as u32);
149    |     ^^^^^^^^^^^^^^^^^^^
150
151 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
152   --> $DIR/invalid_upcast_comparisons.rs:61:5
153    |
154 61 |     (u8 as i32) > -1;
155    |     ^^^^^^^^^^^^^^^^
156
157 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
158   --> $DIR/invalid_upcast_comparisons.rs:62:5
159    |
160 62 |     (u8 as i32) < -1;
161    |     ^^^^^^^^^^^^^^^^
162
163 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
164   --> $DIR/invalid_upcast_comparisons.rs:78:5
165    |
166 78 |     -5 >= (u8 as i32);
167    |     ^^^^^^^^^^^^^^^^^
168
169 error: aborting due to 27 previous errors
170