aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-to-immutable-vec.rs
blob: cb4030eaed73610c5bffe6b770c00609aa1e7805 (plain) (blame)
1
2
3
4
5
6
7
8
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: writing to immutable type
fn main() {
  let vec[int] v = vec(1, 2, 3);
  v.(1) = 4;
}