rust/src/test/compile-fail/writing-through-uninit-vec.rs
2011-08-16 15:05:56 -07:00

6 lines
117 B
Rust

// error-pattern: Unsatisfied precondition constraint
fn test() { let w: [int]; w.(5) = 0; }
fn main() { test(); }