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" );