rust/src/test/ui/resolve/resolve-inconsistent-names.rs
2018-12-25 21:08:33 -07:00

8 lines
193 B
Rust

fn main() {
let y = 1;
match y {
a | b => {} //~ ERROR variable `a` is not bound in all patterns
//~^ ERROR variable `b` is not bound in all patterns
}
}