]> git.lizzy.rs Git - rust.git/commitdiff
Adjust test for 32 bit targets
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Fri, 25 May 2018 13:13:54 +0000 (15:13 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Fri, 25 May 2018 13:13:54 +0000 (15:13 +0200)
src/test/ui/const-eval/ref_to_int_match.rs
src/test/ui/const-eval/ref_to_int_match.stderr

index 0c0bbea1ff75a75f064872901b534dac628eb316..4c5fc6c3797623983bda6f58c13ad1d1211c088b 100644 (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
         _ => {},
index 80053c5c9a21ad55271d2183bafd60a00ae80be3..eef7b6df252fe5f21d48ce32fb7a362d41cc37b2 100644 (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