2019-12-11 08:51:28 -06:00
|
|
|
#![feature(never_type)]
|
2018-01-21 02:44:41 -06:00
|
|
|
#![feature(exhaustive_patterns)]
|
2017-02-20 11:18:31 -06:00
|
|
|
|
|
|
|
mod private {
|
|
|
|
pub struct Private {
|
|
|
|
_bot: !,
|
|
|
|
pub misc: bool,
|
|
|
|
}
|
|
|
|
pub const DATA: Option<Private> = None;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match private::DATA {
|
|
|
|
//~^ ERROR non-exhaustive patterns: `Some(Private { misc: true, .. })` not covered
|
|
|
|
None => {}
|
|
|
|
Some(private::Private {
|
|
|
|
misc: false,
|
|
|
|
..
|
|
|
|
}) => {}
|
|
|
|
}
|
|
|
|
}
|