rust/tests/ui/issues/issue-2849.rs
2023-01-11 09:32:08 +00:00

8 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
}
}