aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/mutual-recursion-group.rs
blob: 4d851052c5c5e36c68e7faf1663fdd04acc7f707 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// -*- rust -*-

tag colour {
  red;
  green;
  blue;
}

tag tree {
  children(@list);
  leaf(colour);
}

tag list {
  cons(@tree, @list);
  nil;
}

tag small_list {
  kons(int,@small_list);
  neel;
}

fn main() {
}