1 2 3 4 5 6 7 8
// error-pattern: writing to immutable type obj objy(int x) { fn foo() -> () { x = 5; } } fn main() { }