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