Skip to main content

error

Macro error 

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

Print an error message to stderr.

Always shown, even in quiet mode. Adds error: prefix.

error!("failed to read file");
// Output: error: failed to read file