about summary refs log tree commit diff
path: root/src/test/ui/conditional-compilation
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/test/ui/conditional-compilation
parent669be1a0a6ffe8e57ac9a0182e085ff9d9910743 (diff)
downloadrust-02eb523d91a2acbb78c9c1ca305e03d88d6dd985.tar.gz
rust-02eb523d91a2acbb78c9c1ca305e03d88d6dd985.zip
Surround found token with `
Diffstat (limited to 'src/test/ui/conditional-compilation')
-rw-r--r--src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs2
-rw-r--r--src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs b/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs
index c5aa903f949..7f0648b381d 100644
--- a/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs
+++ b/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs
@@ -28,7 +28,7 @@ struct S9;
 macro_rules! generate_s10 {
     ($expr: expr) => {
         #[cfg(feature = $expr)]
-        //~^ ERROR expected unsuffixed literal or identifier, found concat!("nonexistent")
+        //~^ ERROR expected unsuffixed literal or identifier, found `concat!("nonexistent")`
         struct S10;
     }
 }
diff --git a/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr b/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr
index 0770d1038e1..7dab2b2b53f 100644
--- a/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr
+++ b/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr
@@ -52,7 +52,7 @@ error[E0565]: literal in `cfg` predicate value must be a string
 LL | #[cfg(a = b"hi")]  //~ ERROR literal in `cfg` predicate value must be a string
    |           ^^^^^ help: consider removing the prefix: `"hi"`
 
-error: expected unsuffixed literal or identifier, found concat!("nonexistent")
+error: expected unsuffixed literal or identifier, found `concat!("nonexistent")`
   --> $DIR/cfg-attr-syntax-validation.rs:30:25
    |
 LL |         #[cfg(feature = $expr)]