diff --git a/nutype_macros/src/common/gen/mod.rs b/nutype_macros/src/common/gen/mod.rs index 650797c..0e48805 100644 --- a/nutype_macros/src/common/gen/mod.rs +++ b/nutype_macros/src/common/gen/mod.rs @@ -453,7 +453,11 @@ pub trait GenerateNewtype { #implementation #implement_traits - #tests + #[cfg(test)] + mod tests { + use super::*; + #tests + } } #reimports ))