blob: 5ceffbf0923661452a215438f02f703f9afcde4c [file] [log] [blame]
//@ aux-build:unstable.rs
extern crate unstable;
use unstable::UnstableEnum;
fn main() {
match UnstableEnum::Stable {
UnstableEnum::Stable => {}
}
//~^^^ non-exhaustive patterns: `UnstableEnum::Stable2` and `_` not covered
match UnstableEnum::Stable {
UnstableEnum::Stable => {}
UnstableEnum::Stable2 => {}
}
//~^^^^ non-exhaustive patterns: `_` not covered
}