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