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.