rust/src/test/compile-fail/issue-6977.rs
2013-09-03 20:00:41 +10:00

6 lines
136 B
Rust

// Trying to create a fixed-length vector with a negative size
fn main() {
let _x = [0,..-1]; //~ ERROR found negative integer
}