1 2 3 4 5 6 7 8 9 10
use proc_macro::TokenStream; pub(crate) fn union_not_supported(data: syn::DataUnion) -> TokenStream { syn::Error::new_spanned( data.union_token, "ImGuiReflect cannot be derived for unions", ) .to_compile_error() .into() }