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

8 lines
164 B
Rust
Raw Normal View History

// Regression test for issue #377
fn main() {
2011-07-27 07:19:39 -05:00
let a = { let b = {a: 3}; b };
assert (a.a == 3);
2011-07-27 07:19:39 -05:00
let c = { let d = {v: 3}; d };
assert (c.v == 3);
}