26 lines
445 B
Rust
26 lines
445 B
Rust
|
#![crate_type = "rlib"]
|
||
|
#![feature(never_type)]
|
||
|
#![feature(non_exhaustive)]
|
||
|
|
||
|
#[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: ! }
|
||
|
}
|