Deriving Debug on an enum with uninhabited type triggers warning #38885
Open
Description
opened on Jan 6, 2017
// no warning
#[derive(Debug)]
enum Void {}
// warns about unreachable pattern
#[derive(Debug)]
enum Foo {
Bar(u8),
Void(Void),
}
Caused by #38069
Activity