// error-pattern: writing to immutable type fn main() { let rec(int x) r = rec(x=1); r.x = 6; }