diff --git a/src/lib.rs b/src/lib.rs index e969076..6b9a26e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1910,7 +1910,7 @@ use syn::{ #[allow(unused)] use trait_handlers::{TraitHandler, TraitHandlerMultiple}; -fn derive_input_handler(mut ast: DeriveInput) -> syn::Result { +fn derive_input_handler(ast: DeriveInput) -> syn::Result { let mut token_stream = proc_macro2::TokenStream::new(); let mut trait_meta_map: HashMap> = HashMap::new(); @@ -1960,7 +1960,7 @@ fn derive_input_handler(mut ast: DeriveInput) -> syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result syn::Result { + x: PhantomData, + } + + #[derive(Clone)] + struct NotDebug; + + let a = Struct { + x: PhantomData:: + }; + let _b = a.clone(); +}