summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76597.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-76597.fixed')
-rw-r--r--tests/ui/parser/issues/issue-76597.fixed11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-76597.fixed b/tests/ui/parser/issues/issue-76597.fixed
new file mode 100644
index 000000000..2d7a30b83
--- /dev/null
+++ b/tests/ui/parser/issues/issue-76597.fixed
@@ -0,0 +1,11 @@
+// run-rustfix
+
+#![allow(dead_code)]
+#![allow(unused_variables)]
+fn f(
+ x: u8,
+ y: u8,
+) {}
+//~^^ ERROR: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `y`
+
+fn main() {}