Skip to content

Commit

Permalink
Adjust test for 32 bit targets
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 25, 2018
1 parent 50d3783 commit 5f599bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/ui/const-eval/ref_to_int_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
_ => {},
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/const-eval/ref_to_int_match.stderr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5f599bb

Please sign in to comment.