rust/tests/ui/macros/bad-concat.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
270 B
Plaintext
Raw Normal View History

error: expected a literal
2018-12-25 09:56:47 -06:00
--> $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 1 previous error