1 2 3 4 5 6 7 8 9 10 11 12 13
// run-pass #![allow(dead_code)] enum Void {} enum Foo { A(i32), B(Void), C(i32) } fn main() { let _foo = Foo::A(0); }