]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: cannot concatenate a byte string literal |
0731742a | 2 | --> $DIR/concat.rs:2:13 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | concat!(b'f'); |
b7449926 XL |
5 | | ^^^^ |
6 | ||
7 | error: cannot concatenate a byte string literal | |
0731742a | 8 | --> $DIR/concat.rs:3:13 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | concat!(b"foo"); |
b7449926 XL |
11 | | ^^^^^^ |
12 | ||
13 | error: expected a literal | |
0731742a | 14 | --> $DIR/concat.rs:4:13 |
b7449926 | 15 | | |
532ac7d7 | 16 | LL | concat!(foo); |
b7449926 XL |
17 | | ^^^ |
18 | | | |
19 | = note: only literals (like `"foo"`, `42` and `3.14`) can be passed to `concat!()` | |
20 | ||
21 | error: expected a literal | |
0731742a | 22 | --> $DIR/concat.rs:5:13 |
b7449926 | 23 | | |
532ac7d7 | 24 | LL | concat!(foo()); |
b7449926 XL |
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 |