rust/src/test/run-pass/vec-slice.rs
2010-06-23 21:03:09 -07:00

6 lines
115 B
Rust

fn main() {
let vec[int] v = vec(1,2,3,4,5);
auto v2 = v.(1,2);
check (v2.(0) == 2);
check (v2.(1) == 3);
}