]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/unaligned_pointers/unaligned_ptr3.rs
forgot to add alignment test loop in one test
[rust.git] / tests / compile-fail / unaligned_pointers / unaligned_ptr3.rs
index 61c2a3cde8948c73ae186446a6306dd5b6933a3b..ecab83b05a09fbcc8a88744dc28d4ff38c01010f 100644 (file)
@@ -7,7 +7,6 @@ fn main() {
         let x = &x[0] as *const _ as *const *const u8; // cast to ptr-to-ptr, so that we load a ptr
         // This must fail because alignment is violated. Test specifically for loading pointers,
         // which have special code in miri's memory.
-        let _x = unsafe { *x };
-        //~^ ERROR but alignment
+        let _x = unsafe { *x }; //~ERROR but alignment
     }
 }