rustc: "expectied" -> "expected" in parser.rs; also say what was found
This commit is contained in:
parent
ccc21fd4da
commit
0847ff7d42
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue