3 use std
::num
::NonZeroU8
;
5 const X
: NonZeroU8
= unsafe { NonZeroU8::new_unchecked(5) }
;
8 const ZERO
: Option
<NonZeroU8
> = NonZeroU8
::new(0);
9 const ONE
: Option
<NonZeroU8
> = NonZeroU8
::new(1);
14 assert
!(ZERO
.is_none());
15 assert_eq
!(ONE
.unwrap().get(), 1);