no_args

Function no_args 

Source
pub fn no_args(input: TokenStream) -> TokenStream
Expand description

Implementation of the __no_args! proc macro.

Generates a “does not accept arguments” error with the span pointing to the arguments.

Input: "ns::attr", token Output: compile_error!("ns::attr does not accept arguments") with span on token