]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/stable-gated-patterns.rs
Auto merge of #98526 - jyn514:download-llvm-outside-checkout, r=Mark-Simulacrum
[rust.git] / src / test / ui / pattern / usefulness / stable-gated-patterns.rs
1 // aux-build:unstable.rs
2
3 extern crate unstable;
4
5 use unstable::UnstableEnum;
6
7 fn main() {
8     match UnstableEnum::Stable {
9         UnstableEnum::Stable => {}
10     }
11     //~^^^ non-exhaustive patterns: `Stable2` and `_` not covered
12
13     match UnstableEnum::Stable {
14         UnstableEnum::Stable => {}
15         UnstableEnum::Stable2 => {}
16     }
17     //~^^^^ non-exhaustive patterns: `_` not covered
18 }