Added > and >= tests for upcast comparisons

This commit is contained in:
Taylor Cramer 2016-03-28 21:44:18 -07:00 committed by mcarton
parent d52d23d662
commit cf451d3bba
1 changed files with 3 additions and 0 deletions

View File

@ -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
}