diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-08-30 23:47:23 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-08-30 23:47:23 -0700 |
| commit | d1a5b277a1cef4cfd48e9aa987e5c8776360fd25 (patch) | |
| tree | 12081aa017cd6b5c52f42f9d81e07422c0e58a6f /src/libsyntax/parse/parser.rs | |
| parent | 0bce6672495d4339c0b2a2d2965bcc8024152e1a (diff) | |
| parent | 5bf1b03e5c8753680c231ebcb7735a9855de31a3 (diff) | |
| download | rust-d1a5b277a1cef4cfd48e9aa987e5c8776360fd25.tar.gz rust-d1a5b277a1cef4cfd48e9aa987e5c8776360fd25.zip | |
rollup merge of #16839 : treeman/issue-15358
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -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 60f24401152..fc93e482adc 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()); } } |
