about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJonas Hietala <tradet.h@gmail.com>2014-08-29 09:18:05 +0200
committerJonas Hietala <tradet.h@gmail.com>2014-08-29 10:36:43 +0200
commit5bf1b03e5c8753680c231ebcb7735a9855de31a3 (patch)
tree423f3c02b52696e22775ffa9e753ec1032619cb6 /src/libsyntax/parse
parentdee8423531bf88752e14ebfbdc2c1d1ade8a8fa7 (diff)
downloadrust-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.rs2
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());
         }
     }