rust/tests/ui/issues/issue-2849.rs

9 lines
173 B
Rust

enum Foo { Alpha, Beta(isize) }
fn main() {
match Foo::Alpha {
Foo::Alpha | Foo::Beta(i) => {}
//~^ ERROR variable `i` is not bound in all patterns
}
}