diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-25 15:13:54 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-25 15:13:54 +0200 |
| commit | 5f599bb490ad7b44d6130213e635c3912f1978d5 (patch) | |
| tree | 873cb6f32af5dea43d6547f8e9f654919ddd1d2f | |
| parent | 50d3783b95aaedd12ba4b2ad07fd2e6958b8bbfe (diff) | |
| download | rust-5f599bb490ad7b44d6130213e635c3912f1978d5.tar.gz rust-5f599bb490ad7b44d6130213e635c3912f1978d5.zip | |
Adjust test for 32 bit targets
| -rw-r--r-- | src/test/ui/const-eval/ref_to_int_match.rs | 3 | ||||
| -rw-r--r-- | src/test/ui/const-eval/ref_to_int_match.stderr | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/const-eval/ref_to_int_match.rs b/src/test/ui/const-eval/ref_to_int_match.rs index 0c0bbea1ff7..4c5fc6c3797 100644 --- a/src/test/ui/const-eval/ref_to_int_match.rs +++ b/src/test/ui/const-eval/ref_to_int_match.rs @@ -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 _ => {}, diff --git a/src/test/ui/const-eval/ref_to_int_match.stderr b/src/test/ui/const-eval/ref_to_int_match.stderr index 80053c5c9a2..eef7b6df252 100644 --- a/src/test/ui/const-eval/ref_to_int_match.stderr +++ b/src/test/ui/const-eval/ref_to_int_match.stderr @@ -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 |
