summary refs log tree commit diff
path: root/src/test/compile-fail/issue-6977.rs
blob: 6c062b0f3f7ba1a0ba80b84c8878374b56e8aa2c (plain)
1
2
3
4
5
// Trying to create a fixed-length vector with a negative size

fn main() {
      let _x = [0,..-1]; //~ ERROR found negative integer
}