2019-07-03 06:30:28 +09:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-11-01 02:57:37 +00:00
|
|
|
// 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() {}
|