We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ba2d04 commit 6b9a202Copy full SHA for 6b9a202
src/test/compile-fail/repeat_count.rs
@@ -23,4 +23,6 @@ fn main() {
23
//~^ ERROR: expected `uint` but found `&'static str`
24
let f = [0, ..-4];
25
//~^ 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
28
}
0 commit comments