mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Added > and >= tests for upcast comparisons
This commit is contained in:
parent
d52d23d662
commit
cf451d3bba
1 changed files with 3 additions and 0 deletions
|
@ -16,4 +16,7 @@ fn main() {
|
|||
-5 < (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always true
|
||||
0 <= (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always true
|
||||
0 < (zero as i32);
|
||||
|
||||
-5 > (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always false
|
||||
-5 >= (u8_max as i32); //~ERROR because of the numeric bounds on `u8_max` prior to casting, this expression is always false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue