]> git.lizzy.rs Git - rust.git/commitdiff
bless 32bit
authorRalf Jung <post@ralfj.de>
Wed, 23 Mar 2022 02:19:50 +0000 (22:19 -0400)
committerRalf Jung <post@ralfj.de>
Wed, 23 Mar 2022 02:19:50 +0000 (22:19 -0400)
src/test/ui/consts/const-eval/ub-wide-ptr.32bit.stderr

index 2a489e8b69c8f70a7fe2a9b8c327cd9289ae7ac4..f8c9dca566b93975278849a26b0279f401ccf64d 100644 (file)
@@ -296,7 +296,7 @@ error[E0080]: could not evaluate static initializer
   --> $DIR/ub-wide-ptr.rs:135:5
    |
 LL |     mem::transmute::<_, &dyn Trait>((&92u8, 0usize))
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ null pointer is not a valid pointer for this operation
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: null pointer is not a valid pointer
 
 error[E0080]: could not evaluate static initializer
   --> $DIR/ub-wide-ptr.rs:139:5