1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use quote::quote; use syn::{ItemFn, parse_quote}; mod util; // TODO this should fail somehow and we want to check that #[test] fn async_fails() { let item: ItemFn = parse_quote! { #[ffi] async fn async_foo() {} }; insta::assert_snapshot!(expand_ffi!(item)); }