add non-regression test for issue #76597

This commit is contained in:
Aurélien Deharbe 2020-09-11 13:58:03 +02:00 committed by Mark Rousskov
parent 5c29a949b3
commit f3ab317e12
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