summaryrefslogtreecommitdiffstats
path: root/tests/ui/c-variadic/issue-86053-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/c-variadic/issue-86053-1.rs')
-rw-r--r--tests/ui/c-variadic/issue-86053-1.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/c-variadic/issue-86053-1.rs b/tests/ui/c-variadic/issue-86053-1.rs
new file mode 100644
index 000000000..49d5c0390
--- /dev/null
+++ b/tests/ui/c-variadic/issue-86053-1.rs
@@ -0,0 +1,12 @@
+// Regression test for the ICE described in issue #86053.
+// error-pattern:unexpected `self` parameter in function
+// error-pattern:`...` must be the last argument of a C-variadic function
+// error-pattern:cannot find type `F` in this scope
+
+
+#![feature(c_variadic)]
+#![crate_type="lib"]
+
+fn ordering4 < 'a , 'b > ( a : , self , self , self ,
+ self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
+}