]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-27831.rs
Auto merge of #28957 - GuillaumeGomez:patch-5, r=Manishearth
[rust.git] / src / test / compile-fail / issue-27831.rs
index 533387c576008c5d3e0f73e77cfd44b0ada09f11..3cdb370f0e94c9156e62c52061ab7bb6a5c00601 100644 (file)
@@ -22,8 +22,8 @@ fn main() {
     let Foo { .. } = x; //~ ERROR `Foo` does not name a struct
 
     let x = Bar;
-    Bar { ..x };
-    let Bar { .. } = x;
+    Bar { ..x }; //~ ERROR empty structs and enum variants with braces are unstable
+    let Bar { .. } = x; //~ ERROR empty structs and enum variants with braces are unstable
 
     match Enum::Bar {
         Enum::Bar { .. } //~ ERROR `Enum::Bar` does not name a struct