]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.rs
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / tuple-struct-nonexhaustive.rs
1 struct Foo(isize, isize);
2
3 fn main() {
4     let x = Foo(1, 2);
5     match x {   //~ ERROR non-exhaustive
6         Foo(1, b) => println!("{}", b),
7         Foo(2, b) => println!("{}", b)
8     }
9 }