Macro assert_diagnostic

Source
macro_rules! assert_diagnostic {
    ($diagnostic:expr, $expected:literal) => { ... };
    ($diagnostic:expr, $expected:expr) => { ... };
}
Expand description

Assert that the given diagnostic/error value, when rendered to stdout, contains the given pattern