]> git.lizzy.rs Git - rust.git/blob - src/test/ui/concat.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / concat.stderr
1 error: cannot concatenate a byte string literal
2   --> $DIR/concat.rs:12:13
3    |
4 LL |     concat!(b'f');  //~ ERROR: cannot concatenate a byte string literal
5    |             ^^^^
6
7 error: cannot concatenate a byte string literal
8   --> $DIR/concat.rs:13:13
9    |
10 LL |     concat!(b"foo");  //~ ERROR: cannot concatenate a byte string literal
11    |             ^^^^^^
12
13 error: expected a literal
14   --> $DIR/concat.rs:14:13
15    |
16 LL |     concat!(foo);   //~ ERROR: expected a literal
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:15:13
23    |
24 LL |     concat!(foo()); //~ ERROR: expected a literal
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