diff options
| author | Jonas Hietala <tradet.h@gmail.com> | 2014-08-29 09:18:05 +0200 |
|---|---|---|
| committer | Jonas Hietala <tradet.h@gmail.com> | 2014-08-29 10:36:43 +0200 |
| commit | 5bf1b03e5c8753680c231ebcb7735a9855de31a3 (patch) | |
| tree | 423f3c02b52696e22775ffa9e753ec1032619cb6 /src/libsyntax/parse | |
| parent | dee8423531bf88752e14ebfbdc2c1d1ade8a8fa7 (diff) | |
| download | rust-5bf1b03e5c8753680c231ebcb7735a9855de31a3.tar.gz rust-5bf1b03e5c8753680c231ebcb7735a9855de31a3.zip | |
Tweak error message for use of a keyword in ident position.
Closes #15358
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 37bda15ac2c..e53ad42cb8e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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()); } } |
