blob: 0447fd2ad58996540933e03a00982c40b509239b [file] [log] [blame] [edit]
//! regression test for <https://github.com/rust-lang/rust/issues/2848>
#[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
//~^ ERROR `beta` is named the same as one of the variants
charlie => {}
}
}