use constptr::ConstPtr; #[test] fn const_context() { let example = "const string"; let _constptr = unsafe { ConstPtr::new_unchecked(example) }; } #[test] fn from_mut() { let mut example = 1234; #[allow(clippy::unnecessary_mut_passed)] let _constptr = ConstPtr::from(&mut example); }