diff options
Diffstat (limited to 'tests/ui/abi/rustcall-generic.rs')
-rw-r--r-- | tests/ui/abi/rustcall-generic.rs | 12 |
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)); +} |