https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=25adf77e74f612769891852bfeaf237c Using uninhabited enums for some targets or combinations of crate features are a useful common idiom and this probably shouldn't emit any warning.