about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-03-06 13:16:52 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-03-06 14:45:23 -0800
commit02eb523d91a2acbb78c9c1ca305e03d88d6dd985 (patch)
tree0dc025b24cacaabf09572db101194cf73efc0db2 /src/libsyntax
parent669be1a0a6ffe8e57ac9a0182e085ff9d9910743 (diff)
downloadrust-02eb523d91a2acbb78c9c1ca305e03d88d6dd985.tar.gz
rust-02eb523d91a2acbb78c9c1ca305e03d88d6dd985.zip
Surround found token with `
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/attr.rs2
1 files changed, 1 insertions, 1 deletions
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))
     }