]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/execute_memory.rs
Auto merge of #1308 - RalfJung:miri, r=RalfJung
[rust.git] / tests / compile-fail / execute_memory.rs
index 87d975e1f9d486ab389b00f8ab4906145076541c..2e6b58a753cd9d8f01eda654fba5a67664f53ba0 100644 (file)
@@ -1,5 +1,5 @@
 // Validation makes this fail in the wrong place
-// compile-flags: -Zmir-emit-validate=0
+// compile-flags: -Zmiri-disable-validation
 
 #![feature(box_syntax)]
 
@@ -7,6 +7,6 @@ fn main() {
     let x = box 42;
     unsafe {
         let f = std::mem::transmute::<Box<i32>, fn()>(x);
-        f() //~ ERROR: tried to treat a memory pointer as a function pointer
+        f() //~ ERROR function pointer but it does not point to a function
     }
 }