summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/bad-concat.stderr
blob: d67f3c33d36e3cf1fe6a82ffb73c1906e01de192 (plain)
1
2
3
4
5
6
7
8
9
10
error: expected a literal
  --> $DIR/bad-concat.rs:5:21
   |
LL |     let _ = concat!(x, y, z, "bar");
   |                     ^  ^  ^
   |
   = note: only literals (like `"foo"`, `-42` and `3.14`) can be passed to `concat!()`

error: aborting due to previous error