2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:16:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
16 | (u8 as u32) > 300;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D invalid-upcast-comparisons` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:17:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
17 | (u8 as i32) > 300;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:18:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
18 | (u8 as u32) == 300;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:19:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
19 | (u8 as i32) == 300;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:20:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
20 | 300 < (u8 as u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:21:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
21 | 300 < (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:22:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
22 | 300 == (u8 as u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:23:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
23 | 300 == (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:25:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-03-02 10:41:20 +01:00
|
|
|
25 | (u8 as u32) <= 300;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:26:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
26 | (u8 as i32) <= 300;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:27:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
27 | (u8 as u32) != 300;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:28:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
28 | (u8 as i32) != 300;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:29:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
29 | 300 >= (u8 as u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:30:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
30 | 300 >= (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:31:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
31 | 300 != (u8 as u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:32:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
32 | 300 != (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:35:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
35 | (u8 as i32) < 0;
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:36:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
36 | -5 != (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:38:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
38 | (u8 as i32) >= 0;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:39:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
39 | -5 == (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:42:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
42 | 1337 == (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:43:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
43 | 1337 == (u8 as u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:45:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
45 | 1337 != (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:46:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
46 | 1337 != (u8 as u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:61:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
61 | (u8 as i32) > -1;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:62:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
62 | (u8 as i32) < -1;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:78:5
|
2017-03-02 10:41:20 +01:00
|
|
|
|
|
|
|
|
78 | -5 >= (u8 as i32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|