rust/tests/ui/macros/concat.stderr

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

31 lines
690 B
Plaintext
Raw Normal View History

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