2018-08-08 12:28:26 +00:00
|
|
|
error: cannot concatenate a byte string literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/concat.rs:2:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | concat!(b'f');
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: cannot concatenate a byte string literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/concat.rs:3:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | concat!(b"foo");
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: expected a literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/concat.rs:4:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | concat!(foo);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
2023-01-14 10:00:17 +00:00
|
|
|
= note: only literals (like `"foo"`, `-42` and `3.14`) can be passed to `concat!()`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: expected a literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/concat.rs:5:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | concat!(foo());
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2023-01-14 10:00:17 +00:00
|
|
|
= note: only literals (like `"foo"`, `-42` and `3.14`) can be passed to `concat!()`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|