PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/expr-block-slot.rs

http://github.com/jruderman/rust
Rust | 7 lines | 6 code | 0 blank | 1 comment | 2 complexity | 7329979ca11a8a1709826b240c2e1ca1 MD5 | raw file
1// Regression test for issue #377
2fn main() {
3    let a = { let b = {a: 3}; b };
4    assert (a.a == 3);
5    let c = { let d = {v: 3}; d };
6    assert (c.v == 3);
7}