1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use quote::quote; use syn::{ItemStruct, parse_quote}; mod util; #[test] fn skip_field() { let item: ItemStruct = parse_quote! { #[ffi] struct Foo { x: u8, #[ffi::skip] y: PhantomData<()> } }; insta::assert_snapshot!(expand_ffi!(item)); }