518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
8 lines
164 B
Rust
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);
|
|
}
|