mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
77ac329a08
Improve diagnostics for unary plus operators (#88276) This pull request improves the diagnostics emitted on parsing a unary plus operator. See #88276. Before: ``` error: expected expression, found `+` --> src/main.rs:2:13 | 2 | let x = +1; | ^ expected expression ``` After: ``` error: leading `+` is not supported --> main.rs:2:13 | 2 | let x = +1; | ^ | | | unexpected `+` | help: try removing the `+` ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |