1 error[E0408]: variable `i` is not bound in all patterns
2 --> $DIR/issue-2849.rs:5:7
4 LL | Foo::Alpha | Foo::Beta(i) => {}
5 | ^^^^^^^^^^ - variable not in all patterns
7 | pattern doesn't bind `i`
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0408`.