diff options
| author | yukang <moorekang@gmail.com> | 2023-02-28 07:55:19 +0000 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2023-02-28 07:55:19 +0000 |
| commit | f01d0c02e7fccc866c3adb7b95e96ec9b4974a37 (patch) | |
| tree | 62799a2d945560f70d49742c5c65de37696cf271 /tests/ui/resolve/token-error-correct-4.rs | |
| parent | f0bc76ac41a0a832c9ee621e31aaf1f515d3d6a5 (diff) | |
| download | rust-f01d0c02e7fccc866c3adb7b95e96ec9b4974a37.tar.gz rust-f01d0c02e7fccc866c3adb7b95e96ec9b4974a37.zip | |
Exit when there are unmatched delims to avoid noisy diagnostics
Diffstat (limited to 'tests/ui/resolve/token-error-correct-4.rs')
| -rw-r--r-- | tests/ui/resolve/token-error-correct-4.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/resolve/token-error-correct-4.rs b/tests/ui/resolve/token-error-correct-4.rs index 5e31d71e7bf..49fad4bd97f 100644 --- a/tests/ui/resolve/token-error-correct-4.rs +++ b/tests/ui/resolve/token-error-correct-4.rs @@ -1,4 +1,3 @@ -// run-rustfix // Test that we do some basic error correction in the tokeniser and apply suggestions. fn setsuna(_: ()) {} @@ -6,5 +5,5 @@ fn setsuna(_: ()) {} fn kazusa() {} fn main() { - setsuna(kazusa(); //~ ERROR: expected one of -} //~ ERROR: expected expression + setsuna(kazusa(); +} //~ ERROR mismatched closing delimiter |
