libsyntax: Accept the new [T, ..N] style for vec.
This commit is contained in:
parent
049e1f9a1f
commit
b0bea10898
3 changed files with 20 additions and 4 deletions
10
src/test/run-pass/new-style-fixed-length-vec.rs
Normal file
10
src/test/run-pass/new-style-fixed-length-vec.rs
Normal 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]));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue