2021-09-18 15:52:43 -05:00
|
|
|
// aux-build:unstable.rs
|
|
|
|
|
|
|
|
extern crate unstable;
|
|
|
|
|
2021-10-27 19:55:44 -05:00
|
|
|
use unstable::UnstableEnum;
|
2021-09-18 15:52:43 -05:00
|
|
|
|
|
|
|
fn main() {
|
2021-10-27 19:55:44 -05:00
|
|
|
match UnstableEnum::Stable {
|
|
|
|
UnstableEnum::Stable => {}
|
2021-09-18 15:52:43 -05:00
|
|
|
}
|
2022-09-02 22:01:35 -05:00
|
|
|
//~^^^ non-exhaustive patterns: `UnstableEnum::Stable2` and `_` not covered
|
2021-09-18 15:52:43 -05:00
|
|
|
|
2021-10-27 19:55:44 -05:00
|
|
|
match UnstableEnum::Stable {
|
|
|
|
UnstableEnum::Stable => {}
|
|
|
|
UnstableEnum::Stable2 => {}
|
2021-09-18 15:52:43 -05:00
|
|
|
}
|
|
|
|
//~^^^^ non-exhaustive patterns: `_` not covered
|
|
|
|
}
|