1 extern crate testcrate;
6 fn give_back(tu: testcrate::TestUnion) -> u64;
10 let magic: u64 = 0xDEADBEEF;
12 // Let's test calling it cross crate
13 let back = unsafe { testcrate::give_back(mem::transmute(magic)) };
14 assert_eq!(magic, back);
16 // And just within this crate
17 let back = unsafe { give_back(mem::transmute(magic)) };
18 assert_eq!(magic, back);