3 #![allow(unused_unsafe)]
5 // https://github.com/rust-lang/rust/issues/48279
7 #[derive(PartialEq, Eq)]
8 pub struct NonZeroU32
{
13 const unsafe fn new_unchecked(value
: u32) -> Self {
18 //pub const FOO_ATOM: NonZeroU32 = unsafe { NonZeroU32::new_unchecked(7) };
19 pub const FOO_ATOM
: NonZeroU32
= unsafe { NonZeroU32 { value: 7 }
};