1 2 3 4 5 6 7 8
enum Foo { Alpha, Beta(isize) } fn main() { match Foo::Alpha { Foo::Alpha | Foo::Beta(i) => {} //~^ ERROR variable `i` is not bound in all patterns } }