rustc: "expectied" -> "expected" in parser.rs; also say what was found

This commit is contained in:
Patrick Walton 2010-11-22 11:43:25 -08:00
parent ccc21fd4da
commit 0847ff7d42

View File

@ -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;
}