about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2021-09-08 12:24:16 -0400
committerGitHub <noreply@github.com>2021-09-08 12:24:16 -0400
commit77ac329a08b50090c9ac387f3d24ddc46bced92e (patch)
treef46c5520479e1884a3205c0ba24073b18735edaf /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent4fb00847f8d1f9f968a703081c54ccfcb846bc38 (diff)
parent20eba43283d59849627042d67413d32e08ace0f1 (diff)
downloadrust-77ac329a08b50090c9ac387f3d24ddc46bced92e.tar.gz
rust-77ac329a08b50090c9ac387f3d24ddc46bced92e.zip
Rollup merge of #88553 - theo-lw:issue-88276, r=estebank
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 `+`
```
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions