]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/match-arm-without-braces.rs
Recover missing comma after match arm
[rust.git] / src / test / ui / parser / match-arm-without-braces.rs
index 55a887427696ded8d7a027f38f6c2ee288fa9f10..bba38fd0fa4c915fd9b3c3548cbfa4dbfb0b6fcc 100644 (file)
@@ -45,9 +45,9 @@ fn main() {
           15;
     }
     match S::get(16) {
-        Some(Val::Foo) => 17
-        _ => 18, //~ ERROR expected one of
-    }
+        Some(Val::Foo) => 17 //~ ERROR expected `,` following `match` arm
+        _ => 18,
+    };
     match S::get(19) {
         Some(Val::Foo) =>
           20; //~ ERROR `match` arm body without braces