about summary refs log tree commit diff
path: root/src/test/compile-fail/struct-no-fields-3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/struct-no-fields-3.rs')
-rw-r--r--src/test/compile-fail/struct-no-fields-3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/struct-no-fields-3.rs b/src/test/compile-fail/struct-no-fields-3.rs
index b6845ce7292..33077d4f1b3 100644
--- a/src/test/compile-fail/struct-no-fields-3.rs
+++ b/src/test/compile-fail/struct-no-fields-3.rs
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern: Unit-like struct construction is written with no trailing `{ }`
 struct Foo;
 
 fn g3() {
     let _mid_tuple    = (Foo { }, 2);
+    //~^ ERROR: Unit-like struct construction is written with no trailing `{ }`
 }
 
 fn main() {}