aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/vec-slice.rs
blob: 5517414230899055bab3cbc6accc81013175854a (plain) (blame)
1
2
3
4
5
6
7
8
9
// xfail-boot
// xfail-boot
// xfail-stage0
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);
}