]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/concat.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / macros / concat.stderr
CommitLineData
b7449926 1error: cannot concatenate a byte string literal
0731742a 2 --> $DIR/concat.rs:2:13
b7449926 3 |
532ac7d7 4LL | concat!(b'f');
b7449926
XL
5 | ^^^^
6
7error: cannot concatenate a byte string literal
0731742a 8 --> $DIR/concat.rs:3:13
b7449926 9 |
532ac7d7 10LL | concat!(b"foo");
b7449926
XL
11 | ^^^^^^
12
13error: expected a literal
0731742a 14 --> $DIR/concat.rs:4:13
b7449926 15 |
532ac7d7 16LL | concat!(foo);
b7449926
XL
17 | ^^^
18 |
19 = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()`
20
21error: expected a literal
0731742a 22 --> $DIR/concat.rs:5:13
b7449926 23 |
532ac7d7 24LL | concat!(foo());
b7449926
XL
25 | ^^^^^
26 |
27 = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()`
28
29error: aborting due to 4 previous errors
30