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 => {} } }