]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/dangling.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / consts / const-eval / dangling.rs
index b5d72d46f2861a5e95d42126edc93940a303f46d..c6b8e8eb611819a10c9af6cb0da142ca8a246158 100644 (file)
@@ -6,7 +6,7 @@
 const TEST: () = { unsafe { //~ NOTE
     let slice: *const [u8] = mem::transmute((1usize, usize::MAX));
     let _val = &*slice; //~ ERROR: any use of this value will cause an error
-    //~^ NOTE: total size is bigger than largest supported object
+    //~^ NOTE: slice is bigger than largest supported object
     //~^^ on by default
 } };