macro_rules! expected { ($expr:expr, $expect:pat $(,)?) => { $crate::test::fixtures::error::expected!($expr, $expect, ()) }; ($expr:expr, $expect:pat, $body:expr $(,)?) => { match $expr { $expect => $body, other => panic!("expected {}, found {other:#?}", stringify!($expect)), } }; } pub(crate) use expected;