Adjust test for 32 bit targets

This commit is contained in:
Oliver Schneider 2018-05-25 15:13:54 +02:00
parent 50d3783b95
commit 5f599bb490
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,8 @@
// except according to those terms.
fn main() {
match 40u64 {
let n: Int = 40;
match n {
0...10 => {},
10...BAR => {}, //~ ERROR lower range bound must be less than or equal to upper
_ => {},

View File

@ -1,5 +1,5 @@
error[E0030]: lower range bound must be less than or equal to upper
--> $DIR/ref_to_int_match.rs:14:9
--> $DIR/ref_to_int_match.rs:15:9
|
LL | 10...BAR => {}, //~ ERROR lower range bound must be less than or equal to upper
| ^^ lower bound larger than upper bound