rust/src/test/run-pass/const-vec-syntax.rs
Patrick Walton c4075492ad librustc: Fix silly bug in AST conversion for const vstores. rs=bugfix
Means that we'll need another snapshot to rid the language of `[const T]`.
2013-03-05 10:18:36 -08:00

8 lines
76 B
Rust

fn f(_: &const [int]) {}
fn main() {
let v = [ 1, 2, 3 ];
f(v);
}