Provide specific label for patern parsing error
This commit is contained in:
parent
d491734b15
commit
adb96ec64b
11 changed files with 40 additions and 44 deletions
|
@ -10,4 +10,5 @@
|
|||
|
||||
// compile-flags: -Z parse-only
|
||||
|
||||
fn f(+x: isize) {} //~ ERROR expected pattern, found `+`
|
||||
fn f(+x: isize) {}
|
||||
//~^ ERROR expected argument name, found `+`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue