//@ check-pass //! Tests that we do not regress rust-lang/rust#125811 #![feature(transmutability)] fn assert_transmutable() where (): std::mem::BikeshedIntrinsicFrom {} enum Uninhabited {} enum SingleInhabited { X, Y(Uninhabited) } enum SingleUninhabited { X(Uninhabited), Y(Uninhabited), } enum MultipleUninhabited { X(u8, Uninhabited), Y(Uninhabited, u16), } fn main() { assert_transmutable::(); assert_transmutable::(); assert_transmutable::(); assert_transmutable::(); }