about summary refs log tree commit diff
path: root/src/test/compile-fail/refutable-pattern-errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-10-01 03:17:24 +0000
committerbors <bors@rust-lang.org>2014-10-01 03:17:24 +0000
commit2f15dcd4d3865f9cc466637027eb02d5607b2bb7 (patch)
tree1a4d8526c45a53753c612bcbb6d283928c927cbc /src/test/compile-fail/refutable-pattern-errors.rs
parent57a05cf49b3149427e3fe190c07f8343a29ad86c (diff)
parent416144b8279fbffceacea6d0fd90e0fd1f8ce53d (diff)
downloadrust-2f15dcd4d3865f9cc466637027eb02d5607b2bb7.tar.gz
rust-2f15dcd4d3865f9cc466637027eb02d5607b2bb7.zip
auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581
This breaks code that looks like:

    match foo {
        1..3 => { ... }
    }

Instead, write:

    match foo {
        1...3 => { ... }
    }

Closes #17295.

r? @nick29581 
Diffstat (limited to 'src/test/compile-fail/refutable-pattern-errors.rs')
-rw-r--r--src/test/compile-fail/refutable-pattern-errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/refutable-pattern-errors.rs b/src/test/compile-fail/refutable-pattern-errors.rs
index 28533518a25..98d616ee3af 100644
--- a/src/test/compile-fail/refutable-pattern-errors.rs
+++ b/src/test/compile-fail/refutable-pattern-errors.rs
@@ -9,10 +9,10 @@
 // except according to those terms.
 
 
-fn func((1, (Some(1), 2..3)): (int, (Option<int>, int))) { }
+fn func((1, (Some(1), 2...3)): (int, (Option<int>, int))) { }
 //~^ ERROR refutable pattern in function argument: `(_, _)` not covered
 
 fn main() {
-    let (1i, (Some(1i), 2i..3i)) = (1i, (None, 2i));
+    let (1i, (Some(1i), 2i...3i)) = (1i, (None, 2i));
     //~^ ERROR refutable pattern in local binding: `(_, _)` not covered
 }