]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/ub-nonnull.64bit.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / ub-nonnull.64bit.stderr
index 63815c46efe142b664c5b87ddee72cd8545baada..3f49a262ae46768041ccac414df3cd2ce0cb10a8 100644 (file)
@@ -14,7 +14,7 @@ error: any use of this value will cause an error
    |
 LL | / const OUT_OF_BOUNDS_PTR: NonNull<u8> = { unsafe {
 LL | |     let ptr: &[u8; 256] = mem::transmute(&0u8); // &0 gets promoted so it does not dangle
-LL | |     // Use address-of-element for pointer arithmetic. This could wrap around to NULL!
+LL | |     // Use address-of-element for pointer arithmetic. This could wrap around to null!
 LL | |     let out_of_bounds_ptr = &ptr[255];
    | |                              ^^^^^^^^ memory access failed: pointer must be in-bounds at offset 256, but is outside bounds of alloc10 which has size 1
 LL | |