paralegal_policy

Macro assert_error

Source
macro_rules! assert_error {
    ($ctx:expr, $cond: expr $(,)?) => { ... };
    ($ctx:expr, $cond: expr, $msg:expr $(,)?) => { ... };
    ($ctx:expr, $cond: expr, $msg:expr, $($frag:expr),+ $(,)?) => { ... };
}
Expand description

Check the condition and emit a Diagnostics::error if it fails.