diff options
| author | bors <bors@rust-lang.org> | 2014-08-09 19:56:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-09 19:56:21 +0000 |
| commit | e55e27db1e92b682a2ce64f695c5d3241db80989 (patch) | |
| tree | 41b692800482647f1b4aa1cb21bf52c0dd695370 | |
| parent | 48ee81682a39c0b36b2286b75e5c18995fe3c718 (diff) | |
| parent | 6b9a202899f19f89333c0ac0b8f466a99cd4a722 (diff) | |
| download | rust-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.rs | 2 |
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 } |
