mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
17 lines
310 B
Rust
17 lines
310 B
Rust
//@ run-pass
|
|
|
|
#![allow(non_camel_case_types)]
|
|
#![allow(dead_code)]
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
enum colour { red, green, blue, }
|
|
|
|
enum tree { children(Box<list>), leaf(colour), }
|
|
|
|
enum list { cons(Box<tree>, Box<list>), nil, }
|
|
|
|
enum small_list { kons(isize, Box<small_list>), neel, }
|
|
|
|
pub fn main() { }
|