This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Description
On IRC, @mystor asked me whether it would be illegal to pass around &SafeType or &mut SafeType given this definition:
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?