blob: aca82037a0c2c68d343eb47478efe3b3b7c2a510 [file] [log] [blame]
//! Regression test for issue #35849: transmute with panic in diverging function
fn assert_sizeof() -> ! {
unsafe {
::std::mem::transmute::<f64, [u8; 8]>(panic!())
//~^ ERROR mismatched types
}
}
fn main() {}