]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/single_variant_match_ice.rs
Reword const fn conditional and loop error text
[rust.git] / src / test / ui / consts / single_variant_match_ice.rs
index 79dde3c18e8fa995ed58414fb85beb8dec9a39b1..6002506689e12c8cb3a0a55e57d1637bd7db0643 100644 (file)
@@ -15,7 +15,7 @@ pub const fn as_val(&self) -> u8 {
         use self::Foo::*;
 
         match *self {
-            Prob => 0x1, //~ ERROR `if`, `match`, `&&` and `||` are not stable in const fn
+            Prob => 0x1, //~ ERROR loops and conditional expressions are not stable in const fn
         }
     }
 }