]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/concat.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / macros / concat.stderr
1 error: cannot concatenate a byte string literal
2   --> $DIR/concat.rs:2:13
3    |
4 LL |     concat!(b'f');
5    |             ^^^^
6
7 error: cannot concatenate a byte string literal
8   --> $DIR/concat.rs:3:13
9    |
10 LL |     concat!(b"foo");
11    |             ^^^^^^
12
13 error: expected a literal
14   --> $DIR/concat.rs:4:13
15    |
16 LL |     concat!(foo);
17    |             ^^^
18    |
19    = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()`
20
21 error: expected a literal
22   --> $DIR/concat.rs:5:13
23    |
24 LL |     concat!(foo());
25    |             ^^^^^
26    |
27    = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()`
28
29 error: aborting due to 4 previous errors
30