summary refs log tree commit diff
path: root/src/test/compile-fail/writing-to-immutable-rec.rs
blob: cdac3706c8130fc1d717dfe1d5e3779736ce6fdc (plain)
1
2
// error-pattern: assigning to immutable field
fn main() { let r: {x: int} = {x: 1}; r.x = 6; }