about summary refs log tree commit diff
path: root/src/test/ui/parser/struct-literal-in-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/struct-literal-in-while.rs')
-rw-r--r--src/test/ui/parser/struct-literal-in-while.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/ui/parser/struct-literal-in-while.rs b/src/test/ui/parser/struct-literal-in-while.rs
index cd3e640b67c..561cdcea089 100644
--- a/src/test/ui/parser/struct-literal-in-while.rs
+++ b/src/test/ui/parser/struct-literal-in-while.rs
@@ -1,5 +1,3 @@
-// compile-flags: -Z parse-only
-
 struct Foo {
     x: isize,
 }
@@ -11,9 +9,10 @@ impl Foo {
 }
 
 fn main() {
-    while Foo {
+    while Foo { //~ ERROR expected value, found struct `Foo`
         x: 3    //~ ERROR expected type, found `3`
     }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
+             //~| ERROR no method named `hi` found for type `()` in the current scope
         println!("yo");
     }
 }