1
Fork 0

Exit when there are unmatched delims to avoid noisy diagnostics

This commit is contained in:
yukang 2023-02-28 07:55:19 +00:00
parent f0bc76ac41
commit f01d0c02e7
99 changed files with 254 additions and 1279 deletions

View file

@ -2,7 +2,7 @@ fn foo() {}
fn bar() -> [u8; 2] {
foo()
[1, 3) //~ ERROR expected one of `.`, `?`, `]`, or an operator, found `,`
[1, 3) //~ ERROR mismatched closing delimiter
}
fn main() {}