Don't leave a marker hanging without completing it.

This commit is contained in:
Erlend Tobiassen 2019-01-22 01:25:00 +01:00
parent 1059ec74e2
commit 1aba42128f
1 changed files with 1 additions and 2 deletions

View File

@ -118,7 +118,7 @@ pub(super) fn opt_where_clause(p: &mut Parser) {
}
if !comma {
p.error("expected comma")
p.error("expected comma");
}
}
}
@ -143,7 +143,6 @@ fn where_predicate(p: &mut Parser) {
}
IMPL_KW => {
p.error("expected lifetime or type");
return;
}
_ => {
types::type_(p);