]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/cast_int_to_fn_ptr.rs
Auto merge of #1308 - RalfJung:miri, r=RalfJung
[rust.git] / tests / compile-fail / cast_int_to_fn_ptr.rs
index 207af4ae2cefb45a9e719f997671af2b7e961bfe..3000779a93307e8ca3e325e5e694af674670bb79 100644 (file)
@@ -6,5 +6,5 @@ fn main() {
         std::mem::transmute::<usize, fn(i32)>(42)
     };
 
-    g(42) //~ ERROR a memory access tried to interpret some bytes as a pointer
+    g(42) //~ ERROR invalid use of 42 as a pointer
 }