syntax: Make is_path_start
precise and improve some error messages about unexpected tokens
This commit is contained in:
parent
6c44bea644
commit
a97f60ee86
25 changed files with 88 additions and 73 deletions
|
@ -10,4 +10,4 @@
|
|||
|
||||
// compile-flags: -Z parse-only
|
||||
|
||||
fn f(+x: isize) {} //~ ERROR unexpected token: `+`
|
||||
fn f(+x: isize) {} //~ ERROR expected pattern, found `+`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue