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