]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/transmute-size-mismatch-before-typeck.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / consts / transmute-size-mismatch-before-typeck.rs
index 2e1d5d26b5c7518072e7baab20733946388d8fd5..852a5b3b46a21385dd0f7ab014c13340facec3e1 100644 (file)
@@ -5,15 +5,9 @@
 
 fn main() {
     match &b""[..] {
-        ZST => {} //~ ERROR could not evaluate constant pattern
-                  //~| ERROR could not evaluate constant pattern
+        ZST => {}
     }
 }
 
 const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
-//~^ ERROR any use of this value will cause an error
-//~| ERROR cannot transmute between types of different sizes
-//~| WARN this was previously accepted by the compiler but is being phased out
-
-// Once the `any use of this value will cause an error` disappears in this test, make sure to
-// remove the `TransmuteSizeDiff` error variant and make its emitter site an assertion again.
+//~^ ERROR cannot transmute between types of different sizes