Tweak error message for use of a keyword in ident position.
Closes #15358
This commit is contained in:
parent
dee8423531
commit
5bf1b03e5c
12 changed files with 12 additions and 12 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue