summaryrefslogtreecommitdiffstats
path: root/src/test/ui/abi/rustcall-generic.rs
blob: 6eaccc436b699b036b4e2c4021c1d7b9d400a5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
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));
}