blob: 35c3065ea815081e1bbb3422d84a2c43cd0a1a57 [file] [log] [blame]
// check-pass
// compile-flags: -Wunused
// ensure there are no special warnings about uninhabited types
// when deriving Debug on an empty enum
#[derive(Debug)]
enum Void {}
#[derive(Debug)]
enum Foo {
Bar(u8),
Void(Void), //~ WARN never constructed
}
fn main() {
let x = Foo::Bar(42);
println!("{:?}", x);
}