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