Skip to main content

parse_error

Function parse_error 

Source
pub fn parse_error<T: ToTokens>(tokens: T, message: &str) -> TokenStream
Expand description

Produces a compile_error! token stream spanned over tokens, reporting message at the location of the offending tokens.