]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-56379.rs
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / issue-56379.rs
1 enum Foo {
2     A(bool),
3     B(bool),
4     C(bool),
5 }
6
7 fn main() {
8     match Foo::A(true) {
9         //~^ ERROR non-exhaustive patterns: `A(false)`, `B(false)` and `C(false)` not covered
10         Foo::A(true) => {}
11         Foo::B(true) => {}
12         Foo::C(true) => {}
13     }
14 }