rust/tests/ui/pattern/usefulness/auxiliary/empty.rs

11 lines
212 B
Rust
Raw Normal View History

2020-11-16 15:13:00 -06:00
#![crate_type = "rlib"]
pub enum EmptyForeignEnum {}
2020-12-02 17:11:29 -06:00
pub struct VisiblyUninhabitedForeignStruct {
pub field: EmptyForeignEnum,
}
pub struct SecretlyUninhabitedForeignStruct {
_priv: EmptyForeignEnum,
}