Skip to main content

check_trailing_binary_op

Function check_trailing_binary_op 

Source
fn check_trailing_binary_op(seq: &[TokenTree]) -> Result<(), Error>
Expand description

Returns an error if the sequence ends with a binary operator.

Token-pair awareness: < + - joint = <- (assignment, not a trailing <); < + < + - = <<- (also assignment); - + > joint = -> (assignment).