This is #[proc_macro_error] attribute to be used with proc-macro-error. There you go.
#[proc_macro_error]
proc-macro-error