From 0b8c691f76a8f3133cf530e98f472ffbbb4e83f9 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 17 Aug 2018 21:25:59 +0200 Subject: [PATCH] fix UI tests --- src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr b/src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr index a9442be081d9..df1e6f8e4c4f 100644 --- a/src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr +++ b/src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr @@ -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