]> git.lizzy.rs Git - rust.git/blob - src/test/ui/abi/rustcall-generic.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / abi / rustcall-generic.rs
1 // revisions: normal opt
2 // check-pass
3 //[opt] compile-flags: -Zmir-opt-level=3
4
5 #![feature(unboxed_closures, tuple_trait)]
6
7 extern "rust-call" fn foo<T: std::marker::Tuple>(_: T) {}
8
9 fn main() {
10     foo(());
11     foo((1, 2));
12 }