aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/generic-recursive-tag.rs
blob: b9596b0da9cdc1bd167a670165029b31197d380c (plain) (blame)
1
2
3
4
5
6
7
8
9
tag list[T] {
  cons(@T, @list[T]);
  nil;
}

fn main() {
  let list[int] a = cons[int](@10, @cons[int](@12, @cons[int](@13,
                                                              @nil[int])));
}