Skip to content

Commit e55e27d

Browse files
committed
auto merge of #16350 : hirschenberger/rust/issue-15917, r=alexcrichton
Adding test for issue #15917 which was previously fixed with #15709
2 parents 48ee816 + 6b9a202 commit e55e27d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/compile-fail/repeat_count.rs

+2
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ fn main() {
2323
//~^ ERROR: expected `uint` but found `&'static str`
2424
let f = [0, ..-4];
2525
//~^ ERROR expected positive integer for repeat count but found negative integer
26+
let f = [0u, ..-1];
27+
//~^ ERROR expected positive integer for repeat count but found negative integer
2628
}

0 commit comments

Comments
 (0)