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