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