]> git.lizzy.rs Git - rust.git/blob - tests/ui/abi/rustcall-generic.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / 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 }