``` enum foo { a(bool,int), b(int) } fn foo_to_int(-foo: foo) -> int { let a(_,x) | b(x) <- foo; x } ```