Re-enable never_transmute_humans.rs
This commit is contained in:
parent
94754de600
commit
ac25a513af
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
// This should fail even without validation
|
||||
// ignore-test causes rustc ICE: rust-lang/rust#50570
|
||||
// compile-flags: -Zmir-emit-validate=0
|
||||
|
||||
#![feature(never_type)]
|
||||
|
|
@ -10,7 +9,8 @@ struct Human;
|
|||
|
||||
fn main() {
|
||||
let x: ! = unsafe {
|
||||
std::mem::transmute::<Human, !>(Human) //~ ERROR entered unreachable code
|
||||
std::mem::transmute::<Human, !>(Human) //~ ERROR constant evaluation error [E0080]
|
||||
//^~ NOTE entered unreachable code
|
||||
};
|
||||
f(x)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue