Macro assert_err
Source macro_rules! assert_err {
($expr:expr) => { ... };
($expr:expr, $($arg:tt)+) => { ... };
}
Expand description
Assert that a result is Err.
§Example
ⓘlet result: Result<(), ForgeError> = Err(ForgeError::Unauthorized);
assert_err!(result);