Skip to main content

abort_spanned

Function abort_spanned 

Source
pub fn abort_spanned<T>(
    tokens: impl ToTokens,
    msg: &str,
    help: &str,
) -> Result<T>
Expand description

Span the given syntax tree over a syn::Error.

ยงErrors

Always returns a syn::Error.