[][src]Function proc_macro_error::trigger_error

pub fn trigger_error<T: Into<MacroError>>(err: T) -> !

Trigger error, aborting the proc-macro's execution.

You're not supposed to use this function directly. Use span_error! or call_site_error! instead.