rust/tests/ui/abi/rustcall-generic.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
228 B
Rust
Raw Normal View History

2022-07-02 16:40:33 -05:00
// revisions: normal opt
// check-pass
2022-07-02 16:40:33 -05:00
//[opt] compile-flags: -Zmir-opt-level=3
2022-07-30 00:37:48 -05:00
#![feature(unboxed_closures, tuple_trait)]
2022-07-30 00:37:48 -05:00
extern "rust-call" fn foo<T: std::marker::Tuple>(_: T) {}
fn main() {
foo(());
foo((1, 2));
}