about summary refs log tree commit diff
path: root/src/test/parse-fail/struct-literal-in-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/parse-fail/struct-literal-in-while.rs')
-rw-r--r--src/test/parse-fail/struct-literal-in-while.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/parse-fail/struct-literal-in-while.rs b/src/test/parse-fail/struct-literal-in-while.rs
index 2052193df91..1c52dc48ccd 100644
--- a/src/test/parse-fail/struct-literal-in-while.rs
+++ b/src/test/parse-fail/struct-literal-in-while.rs
@@ -22,7 +22,7 @@ impl Foo {
 
 fn main() {
     while Foo {
-        x: 3    //~ ERROR expected one of `!`, `.`, `::`, `;`, `{`, `}`, or an operator, found `:`
+        x: 3    //~ ERROR expected type, found `3`
     }.hi() {
         println!("yo");
     }