1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! This module shows an example of code generated by the macro. //! **IT MUST NOT BE USED OUTSIDE THIS CRATE**. numid!(#[doc = "This struct example is generated with the macro call : `numid!(#[doc=…] pub struct NumId);`."] pub struct NumId); #[cfg(test)] mod tests { #[test] fn it_works() { let id = super::NumId::new(); assert!(id.value() != 0); } }