about summary refs log tree commit diff
path: root/src/test/ui/parser/struct-literal-in-if.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/struct-literal-in-if.rs')
-rw-r--r--src/test/ui/parser/struct-literal-in-if.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/parser/struct-literal-in-if.rs b/src/test/ui/parser/struct-literal-in-if.rs
index f69b9b1cbcc..362a71c577f 100644
--- a/src/test/ui/parser/struct-literal-in-if.rs
+++ b/src/test/ui/parser/struct-literal-in-if.rs
@@ -1,5 +1,3 @@
-// compile-flags: -Z parse-only
-
 struct Foo {
     x: isize,
 }
@@ -11,7 +9,7 @@ impl Foo {
 }
 
 fn main() {
-    if Foo {
+    if Foo { //~ ERROR expected value, found struct `Foo`
         x: 3    //~ ERROR expected type, found `3`
     }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
         println!("yo");