macro_rules! assert_err { ( $x:expr, $expected:pat ) => { ... }; }
Assert that a Result is Err and matches an error variant
Result
Err