1 #![cfg(target_pointer_width = "64")] 2 3 use std::mem; 4 use syn::*; 5 6 #[test] test_expr_size()7fn test_expr_size() { 8 assert_eq!(mem::size_of::<Expr>(), 280); 9 } 10 11 #[test] test_item_size()12fn test_item_size() { 13 assert_eq!(mem::size_of::<Item>(), 344); 14 } 15 16 #[test] test_type_size()17fn test_type_size() { 18 assert_eq!(mem::size_of::<Type>(), 304); 19 } 20 21 #[test] test_pat_size()22fn test_pat_size() { 23 assert_eq!(mem::size_of::<Pat>(), 144); 24 } 25 26 #[test] test_lit_size()27fn test_lit_size() { 28 assert_eq!(mem::size_of::<Lit>(), 40); 29 } 30