diff --git a/tests/compile-fail/never_transmute_humans.rs b/tests/compile-fail/never_transmute_humans.rs index 3924dc7371e7..3422d52f9c04 100644 --- a/tests/compile-fail/never_transmute_humans.rs +++ b/tests/compile-fail/never_transmute_humans.rs @@ -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) //~ ERROR entered unreachable code + std::mem::transmute::(Human) //~ ERROR constant evaluation error [E0080] + //^~ NOTE entered unreachable code }; f(x) }