mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 22:46:50 +00:00
Added > and >= tests for upcast comparisons
This commit is contained in:
parent
d52d23d662
commit
cf451d3bba
@ -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…
Reference in New Issue
Block a user