2019-05-04 01:15:26 +01:00
|
|
|
#![crate_type = "rlib"]
|
2019-12-11 09:51:28 -05:00
|
|
|
#![feature(never_type)]
|
2019-05-04 01:15:26 +01:00
|
|
|
|
|
|
|
#[non_exhaustive]
|
|
|
|
pub enum UninhabitedEnum {
|
|
|
|
}
|
|
|
|
|
|
|
|
#[non_exhaustive]
|
|
|
|
pub struct UninhabitedStruct {
|
|
|
|
_priv: !,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[non_exhaustive]
|
|
|
|
pub struct UninhabitedTupleStruct(!);
|
|
|
|
|
|
|
|
pub enum UninhabitedVariants {
|
|
|
|
#[non_exhaustive] Tuple(!),
|
|
|
|
#[non_exhaustive] Struct { x: ! }
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum PartiallyInhabitedVariants {
|
|
|
|
Tuple(u8),
|
|
|
|
#[non_exhaustive] Struct { x: ! }
|
|
|
|
}
|
2019-05-04 12:07:04 +01:00
|
|
|
|
|
|
|
pub struct IndirectUninhabitedEnum(UninhabitedEnum);
|
|
|
|
|
|
|
|
pub struct IndirectUninhabitedStruct(UninhabitedStruct);
|
|
|
|
|
|
|
|
pub struct IndirectUninhabitedTupleStruct(UninhabitedTupleStruct);
|
|
|
|
|
|
|
|
pub struct IndirectUninhabitedVariants(UninhabitedVariants);
|