diff options
| author | Andreas Liljeqvist <bonega@gmail.com> | 2021-08-22 22:45:51 +0200 |
|---|---|---|
| committer | Andreas Liljeqvist <bonega@gmail.com> | 2021-08-22 22:45:51 +0200 |
| commit | 1b4064f04a5d9f2ff910f448f65e3396502ff280 (patch) | |
| tree | f36fbccca01326e85b9c4fff8f0cf6b7c26811b9 | |
| parent | 5a501f73ff753109c7e73d4981fe011633bd8e84 (diff) | |
| download | rust-1b4064f04a5d9f2ff910f448f65e3396502ff280.tar.gz rust-1b4064f04a5d9f2ff910f448f65e3396502ff280.zip | |
fix 32bit err
| -rw-r--r-- | src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr b/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr index e44f3249454..01403a61e5e 100644 --- a/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr +++ b/src/test/ui/consts/const-eval/ub-nonnull.32bit.stderr @@ -52,7 +52,7 @@ error[E0080]: it is undefined behavior to use this value --> $DIR/ub-nonnull.rs:41:1 | LL | const BAD_RANGE1: RestrictedRange1 = unsafe { RestrictedRange1(42) }; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 42, but expected something in the range 10..=30 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 42, but expected something in the range AllocationRange { start: 10, end: 30 } | = 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. = note: the raw bytes of the constant (size: 4, align: 4) { |
