The meaning of `@[x, ..N]` and `~[x, ..N]` has changed.  It used to mean a pointer to a fixed length struct, it now yields an `@[]` or `~[]` vector.  Try: `let mut testStruct = @([~[], ..4])` etc.  We should also not parse the types.



Niko

April 2, 2013 2:51 AM
Hi all,

I am finding errors while creating vector of vectors after updating my compiler to pre-release version of rust-0.6.


let mut testStruct: @[~[int], ..4] = @[~[], ..4];

or 

let mut testStruct: ~[~[int], ..4] = ~[~[], ..4];


Thanks,
Piyush

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to