#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(unsigned_nonzero_div_ceil)] use std::num::NonZero; fn main() { let one = NonZero::new(1u8).unwrap(); let max = NonZero::new(u8::MAX).unwrap(); assert_eq!(one.div_ceil(max), one); let two = NonZero::new(2u8).unwrap(); let three = NonZero::new(3u8).unwrap(); assert_eq!(three.div_ceil(two), two); }