]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/miri_unleashed/enum_discriminants.rs
Bless miri unleashed test now that errors are mandatory
[rust.git] / src / test / ui / consts / miri_unleashed / enum_discriminants.rs
index 623fa2a1547c84579bde45536cf1caf121d3cc9b..d7cdb0babc5c5827699a2576eda83d833a1b28f1 100644 (file)
@@ -20,9 +20,9 @@ enum Foo {
         C(WithWraparoundInvalidValues),
     }
 
-    let x = Foo::B; //~ WARNING skipping const checks
-    match x {
-        Foo::B => 0, //~ WARNING skipping const checks
+    let x = Foo::B;
+    match x { //~ WARNING skipping const checks
+        Foo::B => 0,
         _ => panic!(),
     }
 };
@@ -87,18 +87,20 @@ pub enum E2<X> {
 
     if let E1::V2 { .. } = (E1::V1 { f: true }) {
         //~^ WARNING skipping const checks
-        //~| WARNING skipping const checks
         unreachable!()
     }
     if let E1::V1 { .. } = (E1::V1 { f: true }) {
+        //~^ WARNING skipping const checks
     } else {
         unreachable!()
     }
 
     if let E2::V1 { .. } = E2::V3::<Infallible> {
+        //~^ WARNING skipping const checks
         unreachable!()
     }
     if let E2::V3 { .. } = E2::V3::<Infallible> {
+        //~^ WARNING skipping const checks
     } else {
         unreachable!()
     }