libsyntax: Accept the new [T, ..N] style for vec.

This commit is contained in:
Patrick Walton 2013-03-19 15:40:04 -07:00
parent 049e1f9a1f
commit b0bea10898
3 changed files with 20 additions and 4 deletions

View file

@ -0,0 +1,10 @@
use core::io::println;
static FOO: [int, ..3] = [1, 2, 3];
fn main() {
println(fmt!("%d %d %d", FOO[0], FOO[1], FOO[2]));
}