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