]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/unaligned_ptr_zst.rs
Auto merge of #1308 - RalfJung:miri, r=RalfJung
[rust.git] / tests / compile-fail / unaligned_ptr_zst.rs
index 127ec04027d1a948794d983d0f3a1f468c98a0ee..31f88c838149ef742e4c7b4e9307bcb0cf939137 100644 (file)
@@ -6,5 +6,5 @@ fn main() {
     let x = x as *const _ as *const [u32; 0];
     // This must fail because alignment is violated. Test specifically for loading ZST.
     let _x = unsafe { *x };
-    //~^ ERROR tried to access memory with alignment 2, but alignment 4 is required
+    //~^ ERROR memory with alignment 2, but alignment 4 is required
 }