From 02eb523d91a2acbb78c9c1ca305e03d88d6dd985 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Wed, 6 Mar 2019 13:16:52 -0800 Subject: Surround found token with ` --- src/libsyntax/parse/attr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index 6c02a7407e0..e93e15f9012 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -285,7 +285,7 @@ impl<'a> Parser<'a> { } let found = self.this_token_to_string(); - let msg = format!("expected unsuffixed literal or identifier, found {}", found); + let msg = format!("expected unsuffixed literal or identifier, found `{}`", found); Err(self.diagnostic().struct_span_err(self.span, &msg)) } -- cgit 1.4.1-3-g733a5