rust/src/test/run-pass/expr-block-slot.rs
2011-07-27 15:54:33 +02:00

12 lines
183 B
Rust

// xfail-stage0
// Regression test for issue #377
fn main() {
let a = { let b = {a: 3}; b };
assert (a.a == 3);
let c = { let d = {v: 3}; d };
assert (c.v == 3);
}