This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
7 lines
180 B
Rust
7 lines
180 B
Rust
|
|
fn main() {
|
|
// This just tests whether the vec leaks its members.
|
|
let pvec: [mutable @{a: int, b: int}] =
|
|
[mutable @{a: 1, b: 2}, @{a: 3, b: 4}, @{a: 5, b: 6}];
|
|
}
|