1
Fork 0

Tweak error message for use of a keyword in ident position.

Closes #15358
This commit is contained in:
Jonas Hietala 2014-08-29 09:18:05 +02:00
parent dee8423531
commit 5bf1b03e5c
12 changed files with 12 additions and 12 deletions

View file

@ -599,7 +599,7 @@ impl<'a> Parser<'a> {
let token_str = self.this_token_to_string();
let span = self.span;
self.span_err(span,
format!("found `{}` in ident position",
format!("expected identifier, found keyword `{}`",
token_str).as_slice());
}
}