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