1 2 3 4 5 6 7 8 9 10 11 12
enum Foo { I(i32), } fn main() { let x = Foo::I(1); match x { a @ Foo::I(b) => {}, _ => {}, }; }