Skip to main content

syntax_error

Function syntax_error 

Source
pub fn syntax_error(msg: impl Into<String>, span: Span) -> ParseError
Expand description

Convenience: create an InvalidSyntax error at the given location.