Closed
Description
In reference 7.2.11 Unary operator expressions
Rust defines six symbolic unary operators.
But in document there is only 5 ops; '-', '*', '!', 'box', '&'.
What is the 6th unary op?
By the way, in Rust '+' is not an unary op. So this expression is invalid; 'let a = +(1+2);'.
Considering the symmetry of "+" & '-', I think '+' may be an unary operator.
Of course, '+' unary op has no effect.
Metadata
Metadata
Assignees
Labels
No labels