Skip to content

Commit 6b9a202

Browse files
Adding test for issue #15917 which was previously fixed with #15709
1 parent 0ba2d04 commit 6b9a202

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)