mod bar { enum foo { alpha, beta, charlie } } fn main() { import bar::{alpha, charlie}; alt alpha { alpha | beta {} //~ ERROR: inconsistent number of bindings charlie {} } }