1 2 3 4 5 6 7 8 9
#[allow(unused_macros)] // this is actually used macro_rules! map { ($($x:expr => $y:expr),*) => {{ let mut temp_map = std::collections::BTreeMap::new(); $(temp_map.insert($x, $y);)* temp_map }} }