]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/const_raw_ptr_ops2.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const_raw_ptr_ops2.stderr
index f207674ac1d019324337fbeb992ef1bda0f0ac43..df8b33a0898f659deab953e1a3b9e7614a8a5dcd 100644 (file)
@@ -4,7 +4,7 @@ error: any use of this value will cause an error
 LL | const Y2: usize = unsafe { &1 as *const i32 as usize + 1 };
    | ---------------------------^^^^^^^^^^^^^^^^^^^^^^^^^-------
    |                            |
-   |                            "pointer-to-integer cast" needs an rfc before being allowed inside constants
+   |                            cannot cast pointer to integer because it was not created by cast from integer
    |
    = note: `#[deny(const_err)]` on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!