11error: expected a byte literal
2- --> $DIR/concat-bytes-error.rs:4 :19
2+ --> $DIR/concat-bytes-error.rs:8 :19
33 |
44LL | concat_bytes!(pie);
55 | ^^^
66 |
77 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
88
99error: expected a byte literal
10- --> $DIR/concat-bytes-error.rs:5 :19
10+ --> $DIR/concat-bytes-error.rs:9 :19
1111 |
1212LL | concat_bytes!(pie, pie);
1313 | ^^^ ^^^
1414 |
1515 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
1616
1717error: cannot concatenate string literals
18- --> $DIR/concat-bytes-error.rs:6 :19
18+ --> $DIR/concat-bytes-error.rs:12 :19
1919 |
2020LL | concat_bytes!("tnrsi", "tnri");
2121 | ^^^^^^^ help: try using a byte string: `b"tnrsi"`
2222
23+ error: cannot concatenate string literals
24+ --> $DIR/concat-bytes-error.rs:14:19
25+ |
26+ LL | concat_bytes!(r"tnrsi", r"tnri");
27+ | ^^^^^^^^ help: try using a byte string: `br"tnrsi"`
28+
29+ error: cannot concatenate string literals
30+ --> $DIR/concat-bytes-error.rs:16:19
31+ |
32+ LL | concat_bytes!(r#"tnrsi"#, r###"tnri"###);
33+ | ^^^^^^^^^^ help: try using a byte string: `br#"tnrsi"#`
34+
35+ error: cannot concatenate a C string literal
36+ --> $DIR/concat-bytes-error.rs:18:19
37+ |
38+ LL | concat_bytes!(c"tnrsi", c"tnri");
39+ | ^^^^^^^^
40+
41+ error: cannot concatenate a C string literal
42+ --> $DIR/concat-bytes-error.rs:19:19
43+ |
44+ LL | concat_bytes!(cr"tnrsi", cr"tnri");
45+ | ^^^^^^^^^
46+
47+ error: cannot concatenate a C string literal
48+ --> $DIR/concat-bytes-error.rs:20:19
49+ |
50+ LL | concat_bytes!(cr#"tnrsi"#, cr###"tnri"###);
51+ | ^^^^^^^^^^^
52+
2353error: cannot concatenate float literals
24- --> $DIR/concat-bytes-error.rs:7 :19
54+ --> $DIR/concat-bytes-error.rs:23 :19
2555 |
2656LL | concat_bytes!(2.8);
2757 | ^^^
2858
2959error: cannot concatenate numeric literals
30- --> $DIR/concat-bytes-error.rs:8 :19
60+ --> $DIR/concat-bytes-error.rs:24 :19
3161 |
3262LL | concat_bytes!(300);
3363 | ^^^ help: try wrapping the number in an array: `[300]`
3464
3565error: cannot concatenate character literals
36- --> $DIR/concat-bytes-error.rs:9 :19
66+ --> $DIR/concat-bytes-error.rs:26 :19
3767 |
3868LL | concat_bytes!('a');
3969 | ^^^ help: try using a byte character: `b'a'`
4070
4171error: cannot concatenate boolean literals
42- --> $DIR/concat-bytes-error.rs:10 :19
72+ --> $DIR/concat-bytes-error.rs:28 :19
4373 |
4474LL | concat_bytes!(true, false);
4575 | ^^^^
4676
4777error: cannot concatenate numeric literals
48- --> $DIR/concat-bytes-error.rs:11 :19
78+ --> $DIR/concat-bytes-error.rs:29 :19
4979 |
5080LL | concat_bytes!(42, b"va", b'l');
5181 | ^^ help: try wrapping the number in an array: `[42]`
5282
5383error: cannot concatenate numeric literals
54- --> $DIR/concat-bytes-error.rs:12 :19
84+ --> $DIR/concat-bytes-error.rs:31 :19
5585 |
5686LL | concat_bytes!(42, b"va", b'l', [1, 2]);
5787 | ^^ help: try wrapping the number in an array: `[42]`
5888
5989error: cannot concatenate string literals
60- --> $DIR/concat-bytes-error.rs:14 :9
90+ --> $DIR/concat-bytes-error.rs:36 :9
6191 |
6292LL | "hi",
6393 | ^^^^
6494
6595error: cannot concatenate character literals
66- --> $DIR/concat-bytes-error.rs:17 :9
96+ --> $DIR/concat-bytes-error.rs:39 :9
6797 |
6898LL | 'a',
6999 | ^^^ help: try using a byte character: `b'a'`
70100
71101error: cannot concatenate boolean literals
72- --> $DIR/concat-bytes-error.rs:20 :9
102+ --> $DIR/concat-bytes-error.rs:43 :9
73103 |
74104LL | true,
75105 | ^^^^
76106
77107error: cannot concatenate boolean literals
78- --> $DIR/concat-bytes-error.rs:23 :9
108+ --> $DIR/concat-bytes-error.rs:46 :9
79109 |
80110LL | false,
81111 | ^^^^^
82112
83113error: cannot concatenate float literals
84- --> $DIR/concat-bytes-error.rs:26 :9
114+ --> $DIR/concat-bytes-error.rs:49 :9
85115 |
86116LL | 2.6,
87117 | ^^^
88118
89119error: numeric literal is out of bounds
90- --> $DIR/concat-bytes-error.rs:29 :9
120+ --> $DIR/concat-bytes-error.rs:52 :9
91121 |
92122LL | 265,
93123 | ^^^
94124
95125error: expected a byte literal
96- --> $DIR/concat-bytes-error.rs:32 :9
126+ --> $DIR/concat-bytes-error.rs:55 :9
97127 |
98128LL | -33,
99129 | ^^^
100130 |
101131 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
102132
103133error: cannot concatenate doubly nested array
104- --> $DIR/concat-bytes-error.rs:35 :9
134+ --> $DIR/concat-bytes-error.rs:58 :9
105135 |
106136LL | b"hi!",
107137 | ^^^^^^
@@ -110,72 +140,72 @@ LL | b"hi!",
110140 = help: try flattening the array
111141
112142error: cannot concatenate doubly nested array
113- --> $DIR/concat-bytes-error.rs:38 :9
143+ --> $DIR/concat-bytes-error.rs:61 :9
114144 |
115145LL | [5, 6, 7],
116146 | ^^^^^^^^^
117147
118148error: cannot concatenate numeric literals
119- --> $DIR/concat-bytes-error.rs:40 :19
149+ --> $DIR/concat-bytes-error.rs:63 :19
120150 |
121151LL | concat_bytes!(5u16);
122152 | ^^^^ help: try wrapping the number in an array: `[5u16]`
123153
124154error: numeric literal is not a `u8`
125- --> $DIR/concat-bytes-error.rs:41 :20
155+ --> $DIR/concat-bytes-error.rs:65 :20
126156 |
127157LL | concat_bytes!([5u16]);
128158 | ^^^^
129159
130160error: repeat count is not a positive number
131- --> $DIR/concat-bytes-error.rs:42 :23
161+ --> $DIR/concat-bytes-error.rs:66 :23
132162 |
133163LL | concat_bytes!([3; ()]);
134164 | ^^
135165
136166error: repeat count is not a positive number
137- --> $DIR/concat-bytes-error.rs:43 :23
167+ --> $DIR/concat-bytes-error.rs:67 :23
138168 |
139169LL | concat_bytes!([3; -2]);
140170 | ^^
141171
142172error: repeat count is not a positive number
143- --> $DIR/concat-bytes-error.rs:44 :25
173+ --> $DIR/concat-bytes-error.rs:68 :25
144174 |
145175LL | concat_bytes!([pie; -2]);
146176 | ^^
147177
148178error: expected a byte literal
149- --> $DIR/concat-bytes-error.rs:45 :20
179+ --> $DIR/concat-bytes-error.rs:69 :20
150180 |
151181LL | concat_bytes!([pie; 2]);
152182 | ^^^
153183 |
154184 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
155185
156186error: cannot concatenate float literals
157- --> $DIR/concat-bytes-error.rs:46 :20
187+ --> $DIR/concat-bytes-error.rs:70 :20
158188 |
159189LL | concat_bytes!([2.2; 0]);
160190 | ^^^
161191
162192error: repeat count is not a positive number
163- --> $DIR/concat-bytes-error.rs:47 :25
193+ --> $DIR/concat-bytes-error.rs:71 :25
164194 |
165195LL | concat_bytes!([5.5; ()]);
166196 | ^^
167197
168198error: cannot concatenate doubly nested array
169- --> $DIR/concat-bytes-error.rs:48 :20
199+ --> $DIR/concat-bytes-error.rs:72 :20
170200 |
171201LL | concat_bytes!([[1, 2, 3]; 3]);
172202 | ^^^^^^^^^
173203
174204error: cannot concatenate doubly nested array
175- --> $DIR/concat-bytes-error.rs:49 :20
205+ --> $DIR/concat-bytes-error.rs:73 :20
176206 |
177207LL | concat_bytes!([[42; 2]; 3]);
178208 | ^^^^^^^
179209
180- error: aborting due to 28 previous errors
210+ error: aborting due to 33 previous errors
181211
0 commit comments