about summary refs log tree commit diff
path: root/src/test/ui/parser/expr-as-stmt.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/expr-as-stmt.fixed')
-rw-r--r--src/test/ui/parser/expr-as-stmt.fixed4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/parser/expr-as-stmt.fixed b/src/test/ui/parser/expr-as-stmt.fixed
index 79d73090a04..5f5e25991e0 100644
--- a/src/test/ui/parser/expr-as-stmt.fixed
+++ b/src/test/ui/parser/expr-as-stmt.fixed
@@ -5,7 +5,7 @@
 #![allow(unused_must_use)]
 
 fn foo() -> i32 {
-    ({2}) + {2} //~ ERROR leading `+` is not supported
+    ({2}) + {2} //~ ERROR expected expression, found `+`
     //~^ ERROR mismatched types
 }
 
@@ -16,7 +16,7 @@ fn bar() -> i32 {
 
 fn zul() -> u32 {
     let foo = 3;
-    ({ 42 }) + foo; //~ ERROR leading `+` is not supported
+    ({ 42 }) + foo; //~ ERROR expected expression, found `+`
     //~^ ERROR mismatched types
     32
 }