diff --git a/src/test/compile-fail/repeat_count.rs b/src/test/compile-fail/repeat_count.rs index c62685d0088fe..e19c1921a9000 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 }