1 2 3 4 5 6 7 8 9
#[macro_use] extern crate nonzero_ext; #[test] fn works_in_exprs() { let one = nonzero!(1u32); println!("{}", one); println!("{}", nonzero!(1u8)); }