Closed
Description
Executing the following:
fn main() {
2 + +2;
}
results in:
foo.rs:2:7: 2:8 error: expected expression, found `+`
foo.rs:2 2 + +2;
^
error: aborting due to 2 previous errors
The reference makes it clear that the above code would be rejected. However, the error count indicated doesn't appear to be correct.