We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956b51f commit 0b8c691Copy full SHA for 0b8c691
src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr
@@ -22,7 +22,7 @@ error: this constant cannot be used
22
LL | const Z2: i32 = unsafe { *(42 as *const i32) }; //~ ERROR cannot be used
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^-------------------^^^
24
| |
25
- | tried to access memory with alignment 2, but alignment 4 is required
+ | a memory access tried to interpret some bytes as a pointer
26
27
error: this constant cannot be used
28
--> $DIR/const_raw_ptr_ops.rs:27:1
0 commit comments