summary refs log tree commit diff
path: root/src/test/ui/list.rs
blob: cb83d4103dcedd375bd7d3ab2e38f7775d67a9b5 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

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

enum list { 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))))));
}