1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
//! This module shows an example of code generated by the `numid` macro.
//! **IT MUST NOT BE USED OUTSIDE THIS CRATE**.

numid!(#[doc = "This structure 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);
    }
}