Skip to content

Commit 0b8c691

Browse files
committed
fix UI tests
1 parent 956b51f commit 0b8c691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ error: this constant cannot be used
2222
LL | const Z2: i32 = unsafe { *(42 as *const i32) }; //~ ERROR cannot be used
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^^-------------------^^^
2424
| |
25-
| tried to access memory with alignment 2, but alignment 4 is required
25+
| a memory access tried to interpret some bytes as a pointer
2626

2727
error: this constant cannot be used
2828
--> $DIR/const_raw_ptr_ops.rs:27:1

0 commit comments

Comments
 (0)