about summary refs log tree commit diff
path: root/src/test/compile-fail/struct-no-fields-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/struct-no-fields-2.rs')
-rw-r--r--src/test/compile-fail/struct-no-fields-2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/struct-no-fields-2.rs b/src/test/compile-fail/struct-no-fields-2.rs
index cd555f8d917..4f973f81b16 100644
--- a/src/test/compile-fail/struct-no-fields-2.rs
+++ b/src/test/compile-fail/struct-no-fields-2.rs
@@ -12,7 +12,7 @@ struct Foo;
 
 fn f2() {
     let _end_stmt     = Foo { };
-    //~^ ERROR: unit-like struct construction is written with no trailing `{ }`
+    //~^ ERROR: structure literal must either have at least one field
 }
 
 fn main() {}