summary refs log tree commit diff
path: root/src/test/compile-fail/writing-through-uninit-vec.rs
blob: 0462824c276e92b1c32885bdf5c147cc441f811f (plain)
1
2
3
4
5
// error-pattern: Unsatisfied precondition constraint

fn test() { let w: [int]; w[5] = 0; }

fn main() { test(); }