]> git.lizzy.rs Git - rust.git/commitdiff
fix UI tests
authorRalf Jung <post@ralfj.de>
Fri, 17 Aug 2018 19:25:59 +0000 (21:25 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 22 Aug 2018 11:08:39 +0000 (13:08 +0200)
src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr

index a9442be081d948824ee79fb1abb0619d8142e1c2..df1e6f8e4c4f0d7820dba78648a13ecefb7e1aad 100644 (file)
@@ -22,7 +22,7 @@ error: this constant cannot be used
 LL | const Z2: i32 = unsafe { *(42 as *const i32) }; //~ ERROR cannot be used
    | ^^^^^^^^^^^^^^^^^^^^^^^^^-------------------^^^
    |                          |
-   |                          tried to access memory with alignment 2, but alignment 4 is required
+   |                          a memory access tried to interpret some bytes as a pointer
 
 error: this constant cannot be used
   --> $DIR/const_raw_ptr_ops.rs:27:1