os-rust/src/test/ui/abi/rustcall-generic.rs

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

13 lines
195 B
Rust
Raw Normal View History

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