Skip to content

Commit f64e5bc

Browse files
committed
Re-enable never_transmute_humans.rs
1 parent beaee67 commit f64e5bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/compile-fail/never_transmute_humans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This should fail even without validation
2-
// ignore-test causes rustc ICE: rust-lang/rust#50570
32
// compile-flags: -Zmir-emit-validate=0
43

54
#![feature(never_type)]
@@ -10,7 +9,8 @@ struct Human;
109

1110
fn main() {
1211
let x: ! = unsafe {
13-
std::mem::transmute::<Human, !>(Human) //~ ERROR entered unreachable code
12+
std::mem::transmute::<Human, !>(Human) //~ ERROR constant evaluation error [E0080]
13+
//^~ NOTE entered unreachable code
1414
};
1515
f(x)
1616
}

0 commit comments

Comments
 (0)