2010-06-23 21:03:09 -07:00
|
|
|
|
2010-09-09 15:59:29 -07:00
|
|
|
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
// -*- rust -*-
|
2012-01-19 16:10:31 -08:00
|
|
|
enum colour { red; green; blue; }
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2012-01-19 16:10:31 -08:00
|
|
|
enum tree { children(@list); leaf(colour); }
|
2010-09-09 15:59:29 -07:00
|
|
|
|
2012-01-19 16:10:31 -08:00
|
|
|
enum list { cons(@tree, @list); nil; }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2012-01-19 16:10:31 -08:00
|
|
|
enum small_list { kons(int, @small_list); neel; }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { }
|