Skip to content

Commit f3ab317

Browse files
ad-anssiMark-Simulacrum
authored andcommitted
add non-regression test for issue #76597
1 parent 5c29a94 commit f3ab317

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/test/ui/issue-76597.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn f(
2+
x: u8
3+
y: u8,
4+
) {}
5+
//~^^ ERROR: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `y`
6+
7+
fn main() {}

src/test/ui/issue-76597.stderr

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `y`
2+
--> $DIR/issue-76597.rs:3:38
3+
|
4+
LL | ... x: u8
5+
| - expected one of 7 possible tokens
6+
| ____________________________|
7+
| |
8+
LL | | ... y: u8,
9+
| | | ^ unexpected token
10+
| | |
11+
| help: missing `,`
12+
13+
error: aborting due to previous error
14+

0 commit comments

Comments
 (0)