about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-09 19:56:21 +0000
committerbors <bors@rust-lang.org>2014-08-09 19:56:21 +0000
commite55e27db1e92b682a2ce64f695c5d3241db80989 (patch)
tree41b692800482647f1b4aa1cb21bf52c0dd695370
parent48ee81682a39c0b36b2286b75e5c18995fe3c718 (diff)
parent6b9a202899f19f89333c0ac0b8f466a99cd4a722 (diff)
downloadrust-e55e27db1e92b682a2ce64f695c5d3241db80989.tar.gz
rust-e55e27db1e92b682a2ce64f695c5d3241db80989.zip
auto merge of #16350 : hirschenberger/rust/issue-15917, r=alexcrichton
Adding test for issue #15917 which was previously fixed with #15709
-rw-r--r--src/test/compile-fail/repeat_count.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/compile-fail/repeat_count.rs b/src/test/compile-fail/repeat_count.rs
index c62685d0088..e19c1921a90 100644
--- a/src/test/compile-fail/repeat_count.rs
+++ b/src/test/compile-fail/repeat_count.rs
@@ -23,4 +23,6 @@ fn main() {
     //~^ ERROR: expected `uint` but found `&'static str`
     let f = [0, ..-4];
     //~^ ERROR expected positive integer for repeat count but found negative integer
+    let f = [0u, ..-1];
+    //~^ ERROR expected positive integer for repeat count but found negative integer
 }