PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/src/test/compile-fail/writing-to-immutable-rec.rs

http://github.com/jruderman/rust
Rust | 2 lines | 1 code | 0 blank | 1 comment | 0 complexity | a848c778635bc183e551fc1e2bfdb7d8 MD5 | raw file
1// error-pattern: assigning to immutable field
2fn main() { let r: {x: int} = {x: 1}; r.x = 6; }