From 5bf1b03e5c8753680c231ebcb7735a9855de31a3 Mon Sep 17 00:00:00 2001 From: Jonas Hietala Date: Fri, 29 Aug 2014 09:18:05 +0200 Subject: Tweak error message for use of a keyword in ident position. Closes #15358 --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') 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()); } } -- cgit 1.4.1-3-g733a5