From ac25a513af7900a5ad2b10498d50591f28ba0db4 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 20 May 2018 15:08:15 +0200 Subject: [PATCH] Re-enable never_transmute_humans.rs --- tests/compile-fail/never_transmute_humans.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }