1 extern crate testcrate;
3 extern "C" fn bar<T>(ts: testcrate::TestStruct<T>) -> T {
7 #[link(name = "test", kind = "static")]
9 fn call(c: extern "C" fn(testcrate::TestStruct<i32>) -> i32) -> i32;
13 // Let's test calling it cross crate
14 let back = unsafe { testcrate::call(testcrate::foo::<i32>) };
17 // And just within this crate
18 let back = unsafe { call(bar::<i32>) };