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:
commit
e55e27db1e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue