Skip to content

Commit 1b4064f

Browse files
committed
fix 32bit err
1 parent 5a501f7 commit 1b4064f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ error[E0080]: it is undefined behavior to use this value
5252
--> $DIR/ub-nonnull.rs:41:1
5353
|
5454
LL | const BAD_RANGE1: RestrictedRange1 = unsafe { RestrictedRange1(42) };
55-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 42, but expected something in the range 10..=30
55+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 42, but expected something in the range AllocationRange { start: 10, end: 30 }
5656
|
5757
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
5858
= note: the raw bytes of the constant (size: 4, align: 4) {

0 commit comments

Comments
 (0)