2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:21:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as u32) > 300;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::invalid-upcast-comparisons` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::invalid_upcast_comparisons)]`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:24:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) > 300;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:26:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as u32) == 300;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:28:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) == 300;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:30:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 < (u8 as u32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:32:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 < (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:34:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 == (u8 as u32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:36:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 == (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-03-02 03:41:20 -06:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:39:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as u32) <= 300;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:41:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) <= 300;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:43:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as u32) != 300;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:45:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) != 300;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:47:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 >= (u8 as u32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:49:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 >= (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:51:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 != (u8 as u32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:53:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 300 != (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:57:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) < 0;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:59:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | -5 != (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:62:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) >= 0;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:64:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | -5 == (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:68:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 1337 == (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:70:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 1337 == (u8 as u32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:73:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 1337 != (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:75:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 1337 != (u8 as u32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:90:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) > -1;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:92:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (u8 as i32) < -1;
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/invalid_upcast_comparisons.rs:109:5
|
2017-03-02 03:41:20 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | -5 >= (u8 as i32);
|
2017-03-02 03:41:20 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 27 previous errors
|
|
|
|
|