aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-to-immutable-rec.rs
blob: 8e94dfd94877e2f164eb3f364a97bd8582ff5a1d (plain) (blame)
1
2
3
4
5
6
// xfail-stage0
// error-pattern: writing to immutable type
fn main() {
  let rec(int x) r = rec(x=1);
  r.x = 6;
}