macro_rules! assert_error_variant {
    ($result:expr, $pattern:pat) => { ... };
}
Expand description

Asserts that a result is an error and that the error is of a given variant.