On IRC, @mystor asked me whether it would be illegal to pass around `&SafeType` or `&mut SafeType` given this definition: ``` rust enum Impossible {} #[repr(C)] pub struct SafeType { _prohibit_constructor: Impossible } ``` In particular, is it ok to have an empty enum "by-value" in a struct in this fashion?
On IRC, @mystor asked me whether it would be illegal to pass around
&SafeTypeor&mut SafeTypegiven this definition:In particular, is it ok to have an empty enum "by-value" in a struct in this fashion?