1 2 3 4 5 6 7 8 9
struct Foo(isize, isize); fn main() { let x = Foo(1, 2); match x { //~ ERROR non-exhaustive Foo(1, b) => println!("{}", b), Foo(2, b) => println!("{}", b) } }