summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2848.rs
blob: e0049bf8fbb005a3e94da1aec443fa85ec3d9b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[allow(non_camel_case_types)]

mod bar {
    pub enum foo {
        alpha,
        beta,
        charlie
    }
}

fn main() {
    use bar::foo::{alpha, charlie};
    match alpha {
      alpha | beta => {} //~  ERROR variable `beta` is not bound in all patterns
      charlie => {}
    }
}