1
1
error: expected identifier or string literal
2
- --> $DIR/concat-syntax -errors.rs:5:10
2
+ --> $DIR/concat-usage -errors.rs:5:10
3
3
|
4
4
LL | ${concat()}
5
5
| ^^^^^^^^^^
6
6
7
7
error: `concat` must have at least two elements
8
- --> $DIR/concat-syntax -errors.rs:8:11
8
+ --> $DIR/concat-usage -errors.rs:8:11
9
9
|
10
10
LL | ${concat(aaaa)}
11
11
| ^^^^^^
12
12
13
13
error: expected identifier or string literal
14
- --> $DIR/concat-syntax -errors.rs:11:10
14
+ --> $DIR/concat-usage -errors.rs:11:10
15
15
|
16
16
LL | ${concat(aaaa,)}
17
17
| ^^^^^^^^^^^^^^^
18
18
19
19
error: expected comma
20
- --> $DIR/concat-syntax -errors.rs:16:10
20
+ --> $DIR/concat-usage -errors.rs:16:10
21
21
|
22
22
LL | ${concat(aaaa aaaa)}
23
23
| ^^^^^^^^^^^^^^^^^^^
24
24
25
25
error: `concat` must have at least two elements
26
- --> $DIR/concat-syntax -errors.rs:19:11
26
+ --> $DIR/concat-usage -errors.rs:19:11
27
27
|
28
28
LL | ${concat($ex)}
29
29
| ^^^^^^
30
30
31
31
error: expected comma
32
- --> $DIR/concat-syntax -errors.rs:25:10
32
+ --> $DIR/concat-usage -errors.rs:25:10
33
33
|
34
34
LL | ${concat($ex, aaaa 123)}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
37
error: expected identifier or string literal
38
- --> $DIR/concat-syntax -errors.rs:28:10
38
+ --> $DIR/concat-usage -errors.rs:28:10
39
39
|
40
40
LL | ${concat($ex, aaaa,)}
41
41
| ^^^^^^^^^^^^^^^^^^^^
42
42
43
43
error: expected identifier or string literal
44
- --> $DIR/concat-syntax -errors.rs:88:26
44
+ --> $DIR/concat-usage -errors.rs:88:26
45
45
|
46
46
LL | let ${concat(_a, 'b')}: () = ();
47
47
| ^^^
48
48
49
49
error: expected identifier or string literal
50
- --> $DIR/concat-syntax -errors.rs:91:26
50
+ --> $DIR/concat-usage -errors.rs:91:26
51
51
|
52
52
LL | let ${concat(_a, 1)}: () = ();
53
53
| ^
54
54
55
55
error: expected identifier or string literal
56
- --> $DIR/concat-syntax -errors.rs:94:30
56
+ --> $DIR/concat-usage -errors.rs:94:30
57
57
|
58
58
LL | let ${concat($ident, 'b')}: () = ();
59
59
| ^^^
60
60
61
61
error: expected identifier or string literal
62
- --> $DIR/concat-syntax -errors.rs:96:30
62
+ --> $DIR/concat-usage -errors.rs:96:30
63
63
|
64
64
LL | let ${concat($ident, 1)}: () = ();
65
65
| ^
66
66
67
67
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
68
- --> $DIR/concat-syntax -errors.rs:22:19
68
+ --> $DIR/concat-usage -errors.rs:22:19
69
69
|
70
70
LL | ${concat($ex, aaaa)}
71
71
| ^^
72
72
|
73
73
= note: currently only string literals are supported
74
74
75
75
error: variable `foo` is not recognized in meta-variable expression
76
- --> $DIR/concat-syntax -errors.rs:35:30
76
+ --> $DIR/concat-usage -errors.rs:35:30
77
77
|
78
78
LL | const ${concat(FOO, $foo)}: i32 = 2;
79
79
| ^^^
80
80
81
81
error: `${concat(..)}` is not generating a valid identifier
82
- --> $DIR/concat-syntax -errors.rs:42:14
82
+ --> $DIR/concat-usage -errors.rs:42:14
83
83
|
84
84
LL | let ${concat("1", $ident)}: () = ();
85
85
| ^^^^^^^^^^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | starting_number!(_abc);
90
90
= note: this error originates in the macro `starting_number` (in Nightly builds, run with -Z macro-backtrace for more info)
91
91
92
92
error: `${concat(..)}` is not generating a valid identifier
93
- --> $DIR/concat-syntax -errors.rs:55:14
93
+ --> $DIR/concat-usage -errors.rs:55:14
94
94
|
95
95
LL | let ${concat("\u{00BD}", $ident)}: () = ();
96
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -101,7 +101,7 @@ LL | starting_invalid_unicode!(_abc);
101
101
= note: this error originates in the macro `starting_invalid_unicode` (in Nightly builds, run with -Z macro-backtrace for more info)
102
102
103
103
error: `${concat(..)}` is not generating a valid identifier
104
- --> $DIR/concat-syntax -errors.rs:74:14
104
+ --> $DIR/concat-usage -errors.rs:74:14
105
105
|
106
106
LL | let ${concat($ident, "\u{00BD}")}: () = ();
107
107
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -112,7 +112,7 @@ LL | ending_invalid_unicode!(_abc);
112
112
= note: this error originates in the macro `ending_invalid_unicode` (in Nightly builds, run with -Z macro-backtrace for more info)
113
113
114
114
error: expected pattern, found `$`
115
- --> $DIR/concat-syntax -errors.rs:88:13
115
+ --> $DIR/concat-usage -errors.rs:88:13
116
116
|
117
117
LL | let ${concat(_a, 'b')}: () = ();
118
118
| ^ expected pattern
@@ -123,7 +123,7 @@ LL | unsupported_literals!(_abc);
123
123
= note: this error originates in the macro `unsupported_literals` (in Nightly builds, run with -Z macro-backtrace for more info)
124
124
125
125
error: `${concat(..)}` is not generating a valid identifier
126
- --> $DIR/concat-syntax -errors.rs:81:14
126
+ --> $DIR/concat-usage -errors.rs:81:14
127
127
|
128
128
LL | let ${concat("", "")}: () = ();
129
129
| ^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | empty!();
134
134
= note: this error originates in the macro `empty` (in Nightly builds, run with -Z macro-backtrace for more info)
135
135
136
136
error: `${concat(..)}` is not generating a valid identifier
137
- --> $DIR/concat-syntax -errors.rs:103:16
137
+ --> $DIR/concat-usage -errors.rs:103:16
138
138
|
139
139
LL | const ${concat(_foo, $literal)}: () = ();
140
140
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -145,7 +145,7 @@ LL | bad_literal_string!("\u{00BD}");
145
145
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
146
146
147
147
error: `${concat(..)}` is not generating a valid identifier
148
- --> $DIR/concat-syntax -errors.rs:103:16
148
+ --> $DIR/concat-usage -errors.rs:103:16
149
149
|
150
150
LL | const ${concat(_foo, $literal)}: () = ();
151
151
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -156,7 +156,7 @@ LL | bad_literal_string!("\x41");
156
156
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
157
157
158
158
error: `${concat(..)}` is not generating a valid identifier
159
- --> $DIR/concat-syntax -errors.rs:103:16
159
+ --> $DIR/concat-usage -errors.rs:103:16
160
160
|
161
161
LL | const ${concat(_foo, $literal)}: () = ();
162
162
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -167,7 +167,7 @@ LL | bad_literal_string!("🤷");
167
167
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
168
168
169
169
error: `${concat(..)}` is not generating a valid identifier
170
- --> $DIR/concat-syntax -errors.rs:103:16
170
+ --> $DIR/concat-usage -errors.rs:103:16
171
171
|
172
172
LL | const ${concat(_foo, $literal)}: () = ();
173
173
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -178,7 +178,7 @@ LL | bad_literal_string!("d[-_-]b");
178
178
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
179
179
180
180
error: `${concat(..)}` is not generating a valid identifier
181
- --> $DIR/concat-syntax -errors.rs:103:16
181
+ --> $DIR/concat-usage -errors.rs:103:16
182
182
|
183
183
LL | const ${concat(_foo, $literal)}: () = ();
184
184
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -189,7 +189,7 @@ LL | bad_literal_string!("-1");
189
189
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
190
190
191
191
error: `${concat(..)}` is not generating a valid identifier
192
- --> $DIR/concat-syntax -errors.rs:103:16
192
+ --> $DIR/concat-usage -errors.rs:103:16
193
193
|
194
194
LL | const ${concat(_foo, $literal)}: () = ();
195
195
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -200,7 +200,7 @@ LL | bad_literal_string!("1.0");
200
200
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
201
201
202
202
error: `${concat(..)}` is not generating a valid identifier
203
- --> $DIR/concat-syntax -errors.rs:103:16
203
+ --> $DIR/concat-usage -errors.rs:103:16
204
204
|
205
205
LL | const ${concat(_foo, $literal)}: () = ();
206
206
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -211,15 +211,15 @@ LL | bad_literal_string!("'1'");
211
211
= note: this error originates in the macro `bad_literal_string` (in Nightly builds, run with -Z macro-backtrace for more info)
212
212
213
213
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
214
- --> $DIR/concat-syntax -errors.rs:116:31
214
+ --> $DIR/concat-usage -errors.rs:116:31
215
215
|
216
216
LL | const ${concat(_foo, $literal)}: () = ();
217
217
| ^^^^^^^
218
218
|
219
219
= note: currently only string literals are supported
220
220
221
221
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
222
- --> $DIR/concat-syntax -errors.rs:116:31
222
+ --> $DIR/concat-usage -errors.rs:116:31
223
223
|
224
224
LL | const ${concat(_foo, $literal)}: () = ();
225
225
| ^^^^^^^
@@ -228,7 +228,7 @@ LL | const ${concat(_foo, $literal)}: () = ();
228
228
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
229
229
230
230
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
231
- --> $DIR/concat-syntax -errors.rs:116:31
231
+ --> $DIR/concat-usage -errors.rs:116:31
232
232
|
233
233
LL | const ${concat(_foo, $literal)}: () = ();
234
234
| ^^^^^^^
@@ -237,7 +237,7 @@ LL | const ${concat(_foo, $literal)}: () = ();
237
237
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
238
238
239
239
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
240
- --> $DIR/concat-syntax -errors.rs:116:31
240
+ --> $DIR/concat-usage -errors.rs:116:31
241
241
|
242
242
LL | const ${concat(_foo, $literal)}: () = ();
243
243
| ^^^^^^^
@@ -246,7 +246,7 @@ LL | const ${concat(_foo, $literal)}: () = ();
246
246
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
247
247
248
248
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
249
- --> $DIR/concat-syntax -errors.rs:116:31
249
+ --> $DIR/concat-usage -errors.rs:116:31
250
250
|
251
251
LL | const ${concat(_foo, $literal)}: () = ();
252
252
| ^^^^^^^
@@ -255,15 +255,15 @@ LL | const ${concat(_foo, $literal)}: () = ();
255
255
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
256
256
257
257
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
258
- --> $DIR/concat-syntax -errors.rs:127:31
258
+ --> $DIR/concat-usage -errors.rs:127:31
259
259
|
260
260
LL | const ${concat(_foo, $tt)}: () = ();
261
261
| ^^
262
262
|
263
263
= note: currently only string literals are supported
264
264
265
265
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
266
- --> $DIR/concat-syntax -errors.rs:127:31
266
+ --> $DIR/concat-usage -errors.rs:127:31
267
267
|
268
268
LL | const ${concat(_foo, $tt)}: () = ();
269
269
| ^^
@@ -272,7 +272,7 @@ LL | const ${concat(_foo, $tt)}: () = ();
272
272
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
273
273
274
274
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
275
- --> $DIR/concat-syntax -errors.rs:127:31
275
+ --> $DIR/concat-usage -errors.rs:127:31
276
276
|
277
277
LL | const ${concat(_foo, $tt)}: () = ();
278
278
| ^^
0 commit comments