summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-16939.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-16939.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16939.rs b/src/test/ui/issues/issue-16939.rs
new file mode 100644
index 000000000..ad7248343
--- /dev/null
+++ b/src/test/ui/issues/issue-16939.rs
@@ -0,0 +1,8 @@
+// Make sure we don't ICE when making an overloaded call with the
+// wrong arity.
+
+fn _foo<F: Fn()> (f: F) {
+ |t| f(t); //~ ERROR E0057
+}
+
+fn main() {}