Skip to main content

assert_compile_error

Macro assert_compile_error 

Source
macro_rules! assert_compile_error {
    ($output:expr, $msg:expr) => { ... };
}
Expand description

Asserts that an Output has an error-level diagnostic containing the given message.

Equivalent to assert_diagnostic!(output, Level::Error, "msg").

§Examples

zyn::assert_compile_error!(output, "missing field");