rust/src/test/ui/derive-uninhabited-enum-38885.rs
2018-12-25 21:08:33 -07:00

18 lines
294 B
Rust

// compile-pass
// compile-flags: -Wunused
// ensure there are no special warnings about uninhabited types
// when deriving Debug on an empty enum
#[derive(Debug)]
enum Void {} //~ WARN never used
#[derive(Debug)]
enum Foo { //~ WARN never used
Bar(u8),
Void(Void),
}
fn main() {}