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-06-29 19:46:46 +0000
committerbors <bors@rust-lang.org>2014-06-29 19:46:46 +0000
commitff94f867d29a90ab59060c10a62f65994776a8c4 (patch)
tree2a1eb17ef28c64da19f6b3248217d113e6a2b8bd /src/test/compile-fail/refutable-pattern-errors.rs
parentcc5663ad55f3dc3a642c8e2c4043900783dcc9f8 (diff)
parenta5bb0a3a4574af88add700ace7aefc37172fa7a5 (diff)
downloadrust-ff94f867d29a90ab59060c10a62f65994776a8c4.tar.gz
rust-ff94f867d29a90ab59060c10a62f65994776a8c4.zip
auto merge of #15234 : pcwalton/rust/integer-fallback-and-casts, r=alexcrichton
This will break code that looks like:

    let mut x = 0;
    while ... {
        x += 1;
    }
    println!("{}", x);

Change that code to:

    let mut x = 0i;
    while ... {
        x += 1;
    }
    println!("{}", x);

Closes #15201.

[breaking-change]

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