18 lines
294 B
Rust
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() {}
|
|
|