aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-to-immutable-tup.rs
blob: 68c9e7cd09103a3d1994c64c26ae7d100aa3b93f (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 tup(int) t = tup(1);
  t._0 = 5;
}