Dereferencing an arbitrary raw pointer to () should be safe, right?
Specifically, *std::ptr::null::<()>() should be safe I think, because the value it points to has type unit / (). Since this has no width, there's no memory access.
I'm not sure why someone might want to do this. I was just toying around with some ideas.