2 #![allow(non_camel_case_types)]
4 // Test that unboxed closures work with cross-crate inlining
5 // Acts as a regression test for #16790, #18378 and #18543
7 // aux-build:unboxed-closures-cross-crate.rs
9 extern crate unboxed_closures_cross_crate as ubcc;
12 assert_eq!(ubcc::has_closures(), 2_usize);
13 assert_eq!(ubcc::has_generic_closures(2_usize, 3_usize), 5_usize);