proc_macro_error::dummy

Function set_dummy

Source
pub fn set_dummy(dummy: TokenStream) -> Option<TokenStream>
Expand description

Sets dummy token stream which will be appended to compile_error!(msg);... invocations in case you’ll emit any errors.

See guide.