mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
270 B
Plaintext
11 lines
270 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 1 previous error
|
|
|