summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-4935.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-4935.rs')
-rw-r--r--src/test/ui/issues/issue-4935.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-4935.rs b/src/test/ui/issues/issue-4935.rs
new file mode 100644
index 000000000..b342bbb1b
--- /dev/null
+++ b/src/test/ui/issues/issue-4935.rs
@@ -0,0 +1,6 @@
+// Regression test for issue #4935
+
+fn foo(a: usize) {}
+//~^ defined here
+fn main() { foo(5, 6) }
+//~^ ERROR this function takes 1 argument but 2 arguments were supplied