2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 05:20:28 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2022-07-25 15:36:03 -05:00
|
|
|
enum list { #[allow(unused_tuple_struct_fields)] cons(isize, Box<list>), nil, }
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2021-08-24 19:39:40 -05:00
|
|
|
pub fn main() {
|
|
|
|
list::cons(10, Box::new(list::cons(11, Box::new(list::cons(12, Box::new(list::nil))))));
|
|
|
|
}
|