]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/consts/extra-const-ub/detect-extra-ub.with_flag.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / consts / extra-const-ub / detect-extra-ub.with_flag.stderr
index 4ee12d501e88061424b1a8dd5d0943c636355f9f..0100aafb6b7c6bac2d574298988be39d4d57455b 100644 (file)
@@ -52,6 +52,12 @@ LL |     let _val = *(&mem as *const Align as *const [*const u8; 2]);
    = 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
 
-error: aborting due to 7 previous errors
+error[E0080]: evaluation of constant value failed
+  --> $DIR/detect-extra-ub.rs:97:16
+   |
+LL |     let _val = &*slice;
+   |                ^^^^^^^ constructing invalid value: encountered invalid reference metadata: slice is bigger than largest supported object
+
+error: aborting due to 8 previous errors
 
 For more information about this error, try `rustc --explain E0080`.