macro_rules! expect_variant { ($expr:expr, $variant:path, mut) => { ... }; ($expr:expr, $variant:path) => { ... }; }