]> git.lizzy.rs Git - rust.git/blob - src/test/ui/list.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / list.rs
1 // run-pass
2
3 #![allow(non_camel_case_types)]
4 // pretty-expanded FIXME #23616
5
6 enum list { #[allow(unused_tuple_struct_fields)] cons(isize, Box<list>), nil, }
7
8 pub fn main() {
9     list::cons(10, Box::new(list::cons(11, Box::new(list::cons(12, Box::new(list::nil))))));
10 }