about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 7a3009215f2..1c64b36d960 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -5490,7 +5490,7 @@ impl<'a> Parser<'a> {
             if token_str == ";" {
                 err.note("consider removing the semicolon");
             }
-            return Err();
+            return Err(err);
         }
 
         let hi = if self.span == syntax_pos::DUMMY_SP {