1
1
error: expected a byte literal
2
- --> $DIR/concat-bytes-error.rs:4 :19
2
+ --> $DIR/concat-bytes-error.rs:8 :19
3
3
|
4
4
LL | concat_bytes!(pie);
5
5
| ^^^
6
6
|
7
7
= note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
8
8
9
9
error: expected a byte literal
10
- --> $DIR/concat-bytes-error.rs:5 :19
10
+ --> $DIR/concat-bytes-error.rs:9 :19
11
11
|
12
12
LL | concat_bytes!(pie, pie);
13
13
| ^^^ ^^^
14
14
|
15
15
= note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
16
16
17
17
error: cannot concatenate string literals
18
- --> $DIR/concat-bytes-error.rs:6 :19
18
+ --> $DIR/concat-bytes-error.rs:12 :19
19
19
|
20
20
LL | concat_bytes!("tnrsi", "tnri");
21
21
| ^^^^^^^ help: try using a byte string: `b"tnrsi"`
22
22
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
+
23
53
error: cannot concatenate float literals
24
- --> $DIR/concat-bytes-error.rs:7 :19
54
+ --> $DIR/concat-bytes-error.rs:23 :19
25
55
|
26
56
LL | concat_bytes!(2.8);
27
57
| ^^^
28
58
29
59
error: cannot concatenate numeric literals
30
- --> $DIR/concat-bytes-error.rs:8 :19
60
+ --> $DIR/concat-bytes-error.rs:24 :19
31
61
|
32
62
LL | concat_bytes!(300);
33
63
| ^^^ help: try wrapping the number in an array: `[300]`
34
64
35
65
error: cannot concatenate character literals
36
- --> $DIR/concat-bytes-error.rs:9 :19
66
+ --> $DIR/concat-bytes-error.rs:26 :19
37
67
|
38
68
LL | concat_bytes!('a');
39
69
| ^^^ help: try using a byte character: `b'a'`
40
70
41
71
error: cannot concatenate boolean literals
42
- --> $DIR/concat-bytes-error.rs:10 :19
72
+ --> $DIR/concat-bytes-error.rs:28 :19
43
73
|
44
74
LL | concat_bytes!(true, false);
45
75
| ^^^^
46
76
47
77
error: cannot concatenate numeric literals
48
- --> $DIR/concat-bytes-error.rs:11 :19
78
+ --> $DIR/concat-bytes-error.rs:29 :19
49
79
|
50
80
LL | concat_bytes!(42, b"va", b'l');
51
81
| ^^ help: try wrapping the number in an array: `[42]`
52
82
53
83
error: cannot concatenate numeric literals
54
- --> $DIR/concat-bytes-error.rs:12 :19
84
+ --> $DIR/concat-bytes-error.rs:31 :19
55
85
|
56
86
LL | concat_bytes!(42, b"va", b'l', [1, 2]);
57
87
| ^^ help: try wrapping the number in an array: `[42]`
58
88
59
89
error: cannot concatenate string literals
60
- --> $DIR/concat-bytes-error.rs:14 :9
90
+ --> $DIR/concat-bytes-error.rs:36 :9
61
91
|
62
92
LL | "hi",
63
93
| ^^^^
64
94
65
95
error: cannot concatenate character literals
66
- --> $DIR/concat-bytes-error.rs:17 :9
96
+ --> $DIR/concat-bytes-error.rs:39 :9
67
97
|
68
98
LL | 'a',
69
99
| ^^^ help: try using a byte character: `b'a'`
70
100
71
101
error: cannot concatenate boolean literals
72
- --> $DIR/concat-bytes-error.rs:20 :9
102
+ --> $DIR/concat-bytes-error.rs:43 :9
73
103
|
74
104
LL | true,
75
105
| ^^^^
76
106
77
107
error: cannot concatenate boolean literals
78
- --> $DIR/concat-bytes-error.rs:23 :9
108
+ --> $DIR/concat-bytes-error.rs:46 :9
79
109
|
80
110
LL | false,
81
111
| ^^^^^
82
112
83
113
error: cannot concatenate float literals
84
- --> $DIR/concat-bytes-error.rs:26 :9
114
+ --> $DIR/concat-bytes-error.rs:49 :9
85
115
|
86
116
LL | 2.6,
87
117
| ^^^
88
118
89
119
error: numeric literal is out of bounds
90
- --> $DIR/concat-bytes-error.rs:29 :9
120
+ --> $DIR/concat-bytes-error.rs:52 :9
91
121
|
92
122
LL | 265,
93
123
| ^^^
94
124
95
125
error: expected a byte literal
96
- --> $DIR/concat-bytes-error.rs:32 :9
126
+ --> $DIR/concat-bytes-error.rs:55 :9
97
127
|
98
128
LL | -33,
99
129
| ^^^
100
130
|
101
131
= note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
102
132
103
133
error: cannot concatenate doubly nested array
104
- --> $DIR/concat-bytes-error.rs:35 :9
134
+ --> $DIR/concat-bytes-error.rs:58 :9
105
135
|
106
136
LL | b"hi!",
107
137
| ^^^^^^
@@ -110,72 +140,72 @@ LL | b"hi!",
110
140
= help: try flattening the array
111
141
112
142
error: cannot concatenate doubly nested array
113
- --> $DIR/concat-bytes-error.rs:38 :9
143
+ --> $DIR/concat-bytes-error.rs:61 :9
114
144
|
115
145
LL | [5, 6, 7],
116
146
| ^^^^^^^^^
117
147
118
148
error: cannot concatenate numeric literals
119
- --> $DIR/concat-bytes-error.rs:40 :19
149
+ --> $DIR/concat-bytes-error.rs:63 :19
120
150
|
121
151
LL | concat_bytes!(5u16);
122
152
| ^^^^ help: try wrapping the number in an array: `[5u16]`
123
153
124
154
error: numeric literal is not a `u8`
125
- --> $DIR/concat-bytes-error.rs:41 :20
155
+ --> $DIR/concat-bytes-error.rs:65 :20
126
156
|
127
157
LL | concat_bytes!([5u16]);
128
158
| ^^^^
129
159
130
160
error: repeat count is not a positive number
131
- --> $DIR/concat-bytes-error.rs:42 :23
161
+ --> $DIR/concat-bytes-error.rs:66 :23
132
162
|
133
163
LL | concat_bytes!([3; ()]);
134
164
| ^^
135
165
136
166
error: repeat count is not a positive number
137
- --> $DIR/concat-bytes-error.rs:43 :23
167
+ --> $DIR/concat-bytes-error.rs:67 :23
138
168
|
139
169
LL | concat_bytes!([3; -2]);
140
170
| ^^
141
171
142
172
error: repeat count is not a positive number
143
- --> $DIR/concat-bytes-error.rs:44 :25
173
+ --> $DIR/concat-bytes-error.rs:68 :25
144
174
|
145
175
LL | concat_bytes!([pie; -2]);
146
176
| ^^
147
177
148
178
error: expected a byte literal
149
- --> $DIR/concat-bytes-error.rs:45 :20
179
+ --> $DIR/concat-bytes-error.rs:69 :20
150
180
|
151
181
LL | concat_bytes!([pie; 2]);
152
182
| ^^^
153
183
|
154
184
= note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
155
185
156
186
error: cannot concatenate float literals
157
- --> $DIR/concat-bytes-error.rs:46 :20
187
+ --> $DIR/concat-bytes-error.rs:70 :20
158
188
|
159
189
LL | concat_bytes!([2.2; 0]);
160
190
| ^^^
161
191
162
192
error: repeat count is not a positive number
163
- --> $DIR/concat-bytes-error.rs:47 :25
193
+ --> $DIR/concat-bytes-error.rs:71 :25
164
194
|
165
195
LL | concat_bytes!([5.5; ()]);
166
196
| ^^
167
197
168
198
error: cannot concatenate doubly nested array
169
- --> $DIR/concat-bytes-error.rs:48 :20
199
+ --> $DIR/concat-bytes-error.rs:72 :20
170
200
|
171
201
LL | concat_bytes!([[1, 2, 3]; 3]);
172
202
| ^^^^^^^^^
173
203
174
204
error: cannot concatenate doubly nested array
175
- --> $DIR/concat-bytes-error.rs:49 :20
205
+ --> $DIR/concat-bytes-error.rs:73 :20
176
206
|
177
207
LL | concat_bytes!([[42; 2]; 3]);
178
208
| ^^^^^^^
179
209
180
- error: aborting due to 28 previous errors
210
+ error: aborting due to 33 previous errors
181
211
0 commit comments