1 error: expected a byte literal
2 --> $DIR/concat-bytes-error.rs:4:19
4 LL | concat_bytes!(pie);
7 = note: only byte literals (like `b"foo"`, `b's'`, and `[3, 4, 5]`) can be passed to `concat_bytes!()`
9 error: expected a byte literal
10 --> $DIR/concat-bytes-error.rs:5:19
12 LL | concat_bytes!(pie, pie);
15 = note: only byte literals (like `b"foo"`, `b's'`, and `[3, 4, 5]`) can be passed to `concat_bytes!()`
17 error: cannot concatenate string literals
18 --> $DIR/concat-bytes-error.rs:6:19
20 LL | concat_bytes!("tnrsi", "tnri");
21 | ^^^^^^^ help: try using a byte string: `b"tnrsi"`
23 error: cannot concatenate float literals
24 --> $DIR/concat-bytes-error.rs:7:19
26 LL | concat_bytes!(2.8);
29 error: cannot concatenate numeric literals
30 --> $DIR/concat-bytes-error.rs:8:19
32 LL | concat_bytes!(300);
33 | ^^^ help: try wrapping the number in an array: `[300]`
35 error: cannot concatenate character literals
36 --> $DIR/concat-bytes-error.rs:9:19
38 LL | concat_bytes!('a');
39 | ^^^ help: try using a byte character: `b'a'`
41 error: cannot concatenate boolean literals
42 --> $DIR/concat-bytes-error.rs:10:19
44 LL | concat_bytes!(true, false);
47 error: cannot concatenate numeric literals
48 --> $DIR/concat-bytes-error.rs:11:19
50 LL | concat_bytes!(42, b"va", b'l');
51 | ^^ help: try wrapping the number in an array: `[42]`
53 error: cannot concatenate numeric literals
54 --> $DIR/concat-bytes-error.rs:12:19
56 LL | concat_bytes!(42, b"va", b'l', [1, 2]);
57 | ^^ help: try wrapping the number in an array: `[42]`
59 error: cannot concatenate string literals
60 --> $DIR/concat-bytes-error.rs:14:9
65 error: cannot concatenate character literals
66 --> $DIR/concat-bytes-error.rs:17:9
69 | ^^^ help: try using a byte character: `b'a'`
71 error: cannot concatenate boolean literals
72 --> $DIR/concat-bytes-error.rs:20:9
77 error: cannot concatenate boolean literals
78 --> $DIR/concat-bytes-error.rs:23:9
83 error: cannot concatenate float literals
84 --> $DIR/concat-bytes-error.rs:26:9
89 error: numeric literal is out of bounds
90 --> $DIR/concat-bytes-error.rs:29:9
95 error: expected a byte literal
96 --> $DIR/concat-bytes-error.rs:32:9
101 = note: only byte literals (like `b"foo"`, `b's'`, and `[3, 4, 5]`) can be passed to `concat_bytes!()`
103 error: cannot concatenate doubly nested array
104 --> $DIR/concat-bytes-error.rs:35:9
109 = note: byte strings are treated as arrays of bytes
110 = help: try flattening the array
112 error: cannot concatenate doubly nested array
113 --> $DIR/concat-bytes-error.rs:38:9
118 error: cannot concatenate numeric literals
119 --> $DIR/concat-bytes-error.rs:40:19
121 LL | concat_bytes!(5u16);
122 | ^^^^ help: try wrapping the number in an array: `[5u16]`
124 error: numeric literal is not a `u8`
125 --> $DIR/concat-bytes-error.rs:41:20
127 LL | concat_bytes!([5u16]);
130 error: aborting due to 20 previous errors