summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-50571.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-50571.fixed')
-rw-r--r--tests/ui/issues/issue-50571.fixed8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-50571.fixed b/tests/ui/issues/issue-50571.fixed
new file mode 100644
index 000000000..2f8c925b8
--- /dev/null
+++ b/tests/ui/issues/issue-50571.fixed
@@ -0,0 +1,8 @@
+// run-rustfix
+
+trait Foo {
+ fn foo(_: [i32; 2]) {}
+ //~^ ERROR: patterns aren't allowed in methods without bodies
+}
+
+fn main() {}