blob: 5af0d0e4bbd95a1fff8cea61be8df7957c904712 [file] [log] [blame]
// Validation stops the test before the ICE we used to hit
//@compile-flags: -Zmiri-disable-validation
#![feature(never_type)]
#[derive(Copy, Clone)]
pub enum E {
A(!),
}
pub union U {
u: (),
e: E,
}
fn main() {
let E::A(ref _a) = unsafe { &(&U { u: () }).e };
}