2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![allow(dead_code)]
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2012-01-19 18:31:08 -08:00
|
|
|
enum colour { red, green, blue, }
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2014-10-02 08:10:09 +03:00
|
|
|
enum tree { children(Box<list>), leaf(colour), }
|
2010-09-09 15:59:29 -07:00
|
|
|
|
2014-10-02 08:10:09 +03:00
|
|
|
enum list { cons(Box<tree>, Box<list>), nil, }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
enum small_list { kons(isize, Box<small_list>), neel, }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() { }
|