Skip to content

Commit

Permalink
add non-regression test for issue rust-lang#76597
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-anssi committed Sep 11, 2020
1 parent 439b766 commit f9059a4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/issue-76597.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fn f(
x: u8
y: u8,
) {}
//~^^ ERROR: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `y`

fn main() {}
14 changes: 14 additions & 0 deletions src/test/ui/issue-76597.stderr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f9059a4

Please sign in to comment.