rust/tests/ui/macros/bad-concat.stderr
2023-01-11 09:32:08 +00:00

11 lines
267 B
Plaintext

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