aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/comp/front/parser.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index a0b7eef2..e44d090e 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -1025,8 +1025,10 @@ impure fn parse_item(parser p) -> tup(ast.ident, @ast.item) {
case (token.TYPE) {
ret parse_item_type(p);
}
+ case (?t) {
+ p.err("expected item but found " + token.to_str(t));
+ }
}
- p.err("expectied item");
fail;
}