]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-match-pattern-arm.rs
Create fewer basic blocks in match MIR lowering
[rust.git] / src / test / ui / consts / const-match-pattern-arm.rs
index 3b985269a56c97b4fef98ed1017c6149f8d92bbc..6ed3ac2356243186a78b8f0f73351e9daf38aed1 100644 (file)
@@ -1,6 +1,7 @@
 #![allow(warnings)]
 
 const x: bool = match Some(true) {
+    //~^ ERROR: constant contains unimplemented expression type [E0019]
     Some(value) => true,
     //~^ ERROR: constant contains unimplemented expression type [E0019]
     _ => false
@@ -8,6 +9,7 @@
 
 const y: bool = {
     match Some(true) {
+    //~^ ERROR: constant contains unimplemented expression type [E0019]
         Some(value) => true,
         //~^ ERROR: constant contains unimplemented expression type [E0019]
         _ => false