rust/src/test/compile-fail/writing-through-uninit-vec.rs

5 lines
119 B
Rust
Raw Normal View History

// error-pattern: Unsatisfied precondition constraint
2011-07-27 14:19:39 +02:00
fn test() { let w: vec[int]; w.(5) = 0; }
2011-07-27 14:19:39 +02:00
fn main() { test(); }