We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48ee816 + 6b9a202 commit e55e27dCopy full SHA for e55e27d
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