2018-05-09 10:30:16 -05:00
|
|
|
// This should fail even without validation
|
2018-10-24 10:17:44 -05:00
|
|
|
// compile-flags: -Zmiri-disable-validation
|
2018-05-09 10:30:16 -05:00
|
|
|
|
|
|
|
#![feature(never_type)]
|
|
|
|
|
|
|
|
struct Human;
|
|
|
|
|
|
|
|
fn main() {
|
2018-12-02 04:26:09 -06:00
|
|
|
let _x: ! = unsafe {
|
2019-04-21 06:18:05 -05:00
|
|
|
std::mem::transmute::<Human, !>(Human) //~ ERROR entered unreachable code
|
2018-05-09 10:30:16 -05:00
|
|
|
};
|
|
|
|
}
|