aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/generic-type.rs
blob: 9b5b5297f15cd68914453fc76c99e2739bcd0f26 (plain) (blame)
1
2
3
4
5
6
type pair[T] = tup(T,T);
fn main() {
  let pair[int] x = tup(10,12);
  assert (x._0 == 10);
  assert (x._1 == 12);
}