mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
17 lines
293 B
Rust
17 lines
293 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() {}
|