[][src]Macro proc_macro_error::call_site_error

macro_rules! call_site_error {
    ($fmt:literal, $($args:expr),*) => { ... };
    ($fmt:expr) => { ... };
}

Shortcut for span_error!(Span::call_site(), msg...). This macro is still preferable over plain panic, see Motivation