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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
310 B
Rust
Raw Normal View History

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