Macro macro_tools::diag::prelude::return_syn_err
source · macro_rules! return_syn_err { ( $( $Arg : tt )* ) => { ... }; }
Expand description
Macro to generate syn error either with span of a syntax tree element or with default one proc_macro2::Span::call_site()
.
§Basic use-case.
syn_err!( "No attr" );