Skip to main content

error

Macro error 

Source
macro_rules! error {
    ($($args:tt)+) => { ... };
}
Expand description

Emit a diagnostic of level Level::Error with a formatted message.

Example:

error!(span, "unable to parse identifier: {}", ident);