summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/issue-97197.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/argument-suggestions/issue-97197.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/argument-suggestions/issue-97197.rs b/tests/ui/argument-suggestions/issue-97197.rs
new file mode 100644
index 000000000..4c22608ae
--- /dev/null
+++ b/tests/ui/argument-suggestions/issue-97197.rs
@@ -0,0 +1,6 @@
+fn main() {
+ g((), ());
+ //~^ ERROR function takes 6 arguments but 2 arguments were supplied
+}
+
+pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) -> () {}