]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/miri_unleashed/ptr_arith.stderr
Rollup merge of #101101 - RalfJung:read-pointer-as-bytes, r=oli-obk
[rust.git] / src / test / ui / consts / miri_unleashed / ptr_arith.stderr
index f5c5ee2b8ebad330a511c8135d59483909a34d04..e0c4fa17585a9127836073e2203222feddde3a26 100644 (file)
@@ -9,6 +9,9 @@ error[E0080]: could not evaluate static initializer
    |
 LL |     let _v = x + 0;
    |              ^ unable to turn pointer into raw bytes
+   |
+   = help: this code performed an operation that depends on the underlying bytes representing a pointer
+   = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
 
 warning: skipping const checks
    |