1
Fork 0

Provide specific label for patern parsing error

This commit is contained in:
Esteban Küber 2018-10-28 11:54:31 -07:00
parent d491734b15
commit adb96ec64b
11 changed files with 40 additions and 44 deletions

View file

@ -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 `+`