about summary refs log tree commit diff
path: root/src/test/compile-fail/writing-through-uninit-vec.rs
blob: 7757609df7839bbe062ee970a4f12ca4b0f684a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// xfail-stage0
// error-pattern: Unsatisfied precondition constraint

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

fn main() {
  test();
}