add non-regression test for issue #76597

This commit is contained in:
Aurélien Deharbe 2020-09-11 13:58:03 +02:00
parent 439b766161
commit f9059a41b4
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,7 @@
fn f(
x: u8
y: u8,
) {}
//~^^ ERROR: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `y`
fn main() {}

View File

@ -0,0 +1,14 @@
error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `y`
--> $DIR/issue-76597.rs:3:38
|
LL | ... x: u8
| - expected one of 7 possible tokens
| ____________________________|
| |
LL | | ... y: u8,
| | | ^ unexpected token
| | |
| help: missing `,`
error: aborting due to previous error