]> git.lizzy.rs Git - rust.git/blob - src/test/ui/concat.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / concat.stderr
1 error: cannot concatenate a byte string literal
2   --> $DIR/concat.rs:2: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:3: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:4: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:5: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