]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/recover-from-bad-variant.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / recover-from-bad-variant.rs
index 27b03c0c2db27fbf655fe66b6a597c6e5f5556f7..1bcef450bb9be4706477d6367ec7cb91c7da1058 100644 (file)
@@ -9,6 +9,7 @@ fn main() {
     match x {
         Enum::Foo(a, b) => {}
         //~^ ERROR expected tuple struct or tuple variant, found struct variant `Enum::Foo`
-        Enum::Bar(a, b) => {}
+        Enum::Bar { a, b } => {}
+        //~^ ERROR tuple variant `Enum::Bar` written as struct variant
     }
 }