summary refs log tree commit diff
path: root/tests/ui/list.rs
blob: e44c94b3219abddf26d8c90728272a8f7ed196db (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(dead_code)] 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))))));
}