summaryrefslogtreecommitdiffstats
path: root/tests/ui/abi/rustcall-generic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/abi/rustcall-generic.rs')
-rw-r--r--tests/ui/abi/rustcall-generic.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/abi/rustcall-generic.rs b/tests/ui/abi/rustcall-generic.rs
new file mode 100644
index 000000000..6eaccc436
--- /dev/null
+++ b/tests/ui/abi/rustcall-generic.rs
@@ -0,0 +1,12 @@
+// revisions: normal opt
+// check-pass
+//[opt] compile-flags: -Zmir-opt-level=3
+
+#![feature(unboxed_closures, tuple_trait)]
+
+extern "rust-call" fn foo<T: std::marker::Tuple>(_: T) {}
+
+fn main() {
+ foo(());
+ foo((1, 2));
+}