aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-through-uninit-vec.rs
blob: 55edbf8787515e5cf9c741ad23049bdc1828626b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// error-pattern: Unsatisfied precondition constraint

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

fn main() {
  test();
}