]> git.lizzy.rs Git - rust.git/commitdiff
rustup for ... deprecation
authorRalf Jung <post@ralfj.de>
Sat, 1 Jun 2019 08:04:49 +0000 (10:04 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 1 Jun 2019 08:04:49 +0000 (10:04 +0200)
rust-version
tests/run-pass/ints.rs

index 5504e77097b735d970d5473bede6f2a39a674822..60d0ba51f794c9ea6d6ef37b7ca45137f3988de2 100644 (file)
@@ -1 +1 @@
-c28084ac16af4ab594b6860958df140e7c876a13
+8b40a188cee5bef97526dfc271afbd2a98008183
index 4f23b5ec9c3816647be90d643b7cac4b8cd90481..00ca2aa41dd35448c1675f706f9aa3194b4d0604 100644 (file)
@@ -34,11 +34,11 @@ fn match_int() -> i16 {
 fn match_int_range() -> i64 {
     let n = 42;
     match n {
-        0...9 => 0,
-        10...19 => 1,
-        20...29 => 2,
-        30...39 => 3,
-        40...49 => 4,
+        0..=9 => 0,
+        10..=19 => 1,
+        20..=29 => 2,
+        30..=39 => 3,
+        40..=42 => 4,
         _ => 5,
     }
 }