summary refs log tree commit diff
path: root/src/test/compile-fail/resolve-inconsistent-names.rs
blob: 2c1ade056ad9387d891670c6591b412ec46956d1 (plain)
1
2
3
4
5
6
7
fn main() {
    let y = 1;
    match y {
       a | b => {} //~ ERROR variable `a` from pattern #1 is not bound in pattern #2
       //~^ ERROR variable `b` from pattern #2 is not bound in pattern #1
    }
}