rust/tests/ui/mutual-recursion-group.rs

17 lines
308 B
Rust
Raw Normal View History

// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]
2010-06-24 04:03:09 +00:00
// pretty-expanded FIXME #23616
enum colour { red, green, blue, }
2014-10-02 05:10:09 +00:00
enum tree { children(Box<list>), leaf(colour), }
2014-10-02 05:10:09 +00:00
enum list { cons(Box<tree>, Box<list>), nil, }
2010-06-24 04:03:09 +00:00
enum small_list { kons(isize, Box<small_list>), neel, }
2010-06-24 04:03:09 +00:00
pub fn main() { }