rust/src/test/ui/derive-uninhabited-enum-38885.rs

17 lines
293 B
Rust
Raw Normal View History

// 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() {}