summaryrefslogtreecommitdiffstats
path: root/tests/ui/list.rs
blob: ffe9f93860a31255d79b790185f1d7b9f3767d5f (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

#![allow(non_camel_case_types)]
// pretty-expanded FIXME #23616

enum list { #[allow(unused_tuple_struct_fields)] cons(isize, Box<list>), nil, }

pub fn main() {
    list::cons(10, Box::new(list::cons(11, Box::new(list::cons(12, Box::new(list::nil))))));
}