parser: gracefully handle fn foo(A | B: type)
.
This commit is contained in:
parent
083963e58c
commit
1caaa40768
23 changed files with 125 additions and 97 deletions
|
@ -1,4 +1,4 @@
|
|||
fn f(+x: isize) {}
|
||||
//~^ ERROR expected argument name, found `+`
|
||||
//~^ ERROR expected parameter name, found `+`
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue