rust/src/test/compile-fail/writing-to-immutable-obj.rs
2011-07-27 15:54:33 +02:00

6 lines
124 B
Rust

// xfail-stage0
// error-pattern:assigning to immutable obj field
obj objy(x: int) {
fn foo() { x = 5; }
}
fn main() { }