auto merge of #16350 : hirschenberger/rust/issue-15917, r=alexcrichton

Adding test for issue #15917 which was previously fixed with #15709
This commit is contained in:
bors 2014-08-09 19:56:21 +00:00
commit e55e27db1e

View File

@ -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
}