diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-04-10 18:07:52 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-04-10 18:07:52 -0700 |
| commit | ac037c1359afa273bd5573b5be1b21d074c22219 (patch) | |
| tree | 2cd4bb9f7a53c7319460120481965fcad43ef7bc /src/test/incremental/thinlto | |
| parent | 96d700f1b7bc9c53fa0d11567adb1ed2c1c27e79 (diff) | |
| download | rust-ac037c1359afa273bd5573b5be1b21d074c22219.tar.gz rust-ac037c1359afa273bd5573b5be1b21d074c22219.zip | |
Recover from missing semicolon based on the found token
When encountering one of a few keywords when a semicolon was
expected, suggest the semicolon and recover:
```
error: expected one of `.`, `;`, `?`, or an operator, found `let`
--> $DIR/recover-missing-semi.rs:4:5
|
LL | let _: usize = ()
| - help: missing semicolon here
LL |
LL | let _ = 3;
| ^^^
error[E0308]: mismatched types
--> $DIR/recover-missing-semi.rs:2:20
|
LL | let _: usize = ()
| ^^ expected usize, found ()
|
= note: expected type `usize`
found type `()`
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
