summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2849.rs
blob: 1b844e359fb478afdbad5bad2bdf30c80811afd1 (plain)
1
2
3
4
5
6
7
enum foo { alpha, beta(int) }

fn main() {
    match alpha {
      alpha | beta(i) => {} //~ ERROR variable `i` from pattern #2 is not bound in pattern #1
    }
}