rust/src/test/run-pass/expr-block-slot.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

8 lines
164 B
Rust

// 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);
}