• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[repr(C)]
2 struct Demo(u64, bool, u64, u32, u64, u64, u64);
3 
test() -> (Demo, Demo)4 fn test() -> (Demo, Demo) {
5     let mut x = Demo(1, true, 3, 4, 5, 6, 7);
6     let mut y = Demo(10, false, 12, 13, 14, 15, 16);
7     std::mem::swap(&mut x, &mut y);
8     (x, y)
9 }
10 
main()11 fn main() {
12     drop(test());
13 }
14