Skip to content

Commit b8915f2

Browse files
committed
fix other affected tests
1 parent a3770c2 commit b8915f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error[E0080]: it is undefined behavior to use this value
1010
--> $DIR/issue-52023-array-size-pointer-cast.rs:12:17
1111
|
1212
LL | let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
13-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer, but expected initialized plain bits
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer, but expected initialized plain (non-pointer) bytes
1414
|
1515
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior
1616

0 commit comments

Comments
 (0)