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