]> git.proxmox.com Git - rustc.git/blame - tests/ui/asm/x86_64/parse-error.stderr
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / ui / asm / x86_64 / parse-error.stderr
CommitLineData
f9f354fc 1error: requires at least a template string argument
a2a8927a 2 --> $DIR/parse-error.rs:11:9
f9f354fc
XL
3 |
4LL | asm!();
c295e0f8 5 | ^^^^^^
f9f354fc
XL
6
7error: asm template must be a string literal
a2a8927a 8 --> $DIR/parse-error.rs:13:14
f9f354fc
XL
9 |
10LL | asm!(foo);
11 | ^^^
12
13error: expected token: `,`
a2a8927a 14 --> $DIR/parse-error.rs:15:19
f9f354fc
XL
15 |
16LL | asm!("{}" foo);
17 | ^^^ expected `,`
18
94222f64 19error: expected operand, clobber_abi, options, or additional template string
a2a8927a 20 --> $DIR/parse-error.rs:17:20
f9f354fc
XL
21 |
22LL | asm!("{}", foo);
94222f64 23 | ^^^ expected operand, clobber_abi, options, or additional template string
f9f354fc
XL
24
25error: expected `(`, found `foo`
a2a8927a 26 --> $DIR/parse-error.rs:19:23
f9f354fc
XL
27 |
28LL | asm!("{}", in foo);
29 | ^^^ expected `(`
30
31error: expected `)`, found `foo`
a2a8927a 32 --> $DIR/parse-error.rs:21:27
f9f354fc
XL
33 |
34LL | asm!("{}", in(reg foo));
35 | ^^^ expected `)`
36
37error: expected expression, found end of macro arguments
a2a8927a 38 --> $DIR/parse-error.rs:23:27
f9f354fc
XL
39 |
40LL | asm!("{}", in(reg));
41 | ^ expected expression
42
43error: expected register class or explicit register
a2a8927a 44 --> $DIR/parse-error.rs:25:26
f9f354fc
XL
45 |
46LL | asm!("{}", inout(=) foo => bar);
47 | ^
48
49error: expected expression, found end of macro arguments
a2a8927a 50 --> $DIR/parse-error.rs:27:37
f9f354fc
XL
51 |
52LL | asm!("{}", inout(reg) foo =>);
53 | ^ expected expression
54
55error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `=>`
a2a8927a 56 --> $DIR/parse-error.rs:29:32
f9f354fc
XL
57 |
58LL | asm!("{}", in(reg) foo => bar);
59 | ^^ expected one of 7 possible tokens
60
04454e1e 61error: expected a path for argument to `sym`
a2a8927a 62 --> $DIR/parse-error.rs:31:24
f9f354fc
XL
63 |
64LL | asm!("{}", sym foo + bar);
65 | ^^^^^^^^^
66
a2a8927a
XL
67error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo`
68 --> $DIR/parse-error.rs:33:26
f9f354fc
XL
69 |
70LL | asm!("", options(foo));
a2a8927a 71 | ^^^ expected one of 10 possible tokens
f9f354fc
XL
72
73error: expected one of `)` or `,`, found `foo`
a2a8927a 74 --> $DIR/parse-error.rs:35:32
f9f354fc
XL
75 |
76LL | asm!("", options(nomem foo));
77 | ^^^ expected one of `)` or `,`
78
a2a8927a
XL
79error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo`
80 --> $DIR/parse-error.rs:37:33
f9f354fc
XL
81 |
82LL | asm!("", options(nomem, foo));
a2a8927a 83 | ^^^ expected one of 10 possible tokens
f9f354fc 84
3c0e092e 85error: at least one abi must be provided as an argument to `clobber_abi`
353b0b11 86 --> $DIR/parse-error.rs:41:30
94222f64 87 |
3c0e092e
XL
88LL | asm!("", clobber_abi());
89 | ^
90
91error: expected string literal
353b0b11 92 --> $DIR/parse-error.rs:43:30
3c0e092e 93 |
94222f64
XL
94LL | asm!("", clobber_abi(foo));
95 | ^^^ not a string literal
96
3c0e092e 97error: expected one of `)` or `,`, found `foo`
353b0b11 98 --> $DIR/parse-error.rs:45:34
94222f64
XL
99 |
100LL | asm!("", clobber_abi("C" foo));
3c0e092e 101 | ^^^ expected one of `)` or `,`
94222f64 102
3c0e092e 103error: expected string literal
353b0b11 104 --> $DIR/parse-error.rs:47:35
94222f64
XL
105 |
106LL | asm!("", clobber_abi("C", foo));
3c0e092e 107 | ^^^ not a string literal
94222f64 108
f9f354fc 109error: duplicate argument named `a`
353b0b11 110 --> $DIR/parse-error.rs:54:36
f9f354fc
XL
111 |
112LL | asm!("{a}", a = const foo, a = const bar);
113 | ------------- ^^^^^^^^^^^^^ duplicate argument
114 | |
115 | previously here
116
117error: argument never used
353b0b11 118 --> $DIR/parse-error.rs:54:36
f9f354fc
XL
119 |
120LL | asm!("{a}", a = const foo, a = const bar);
121 | ^^^^^^^^^^^^^ argument never used
f035d41b
XL
122 |
123 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
f9f354fc
XL
124
125error: explicit register arguments cannot have names
353b0b11 126 --> $DIR/parse-error.rs:59:18
f9f354fc
XL
127 |
128LL | asm!("", a = in("eax") foo);
129 | ^^^^^^^^^^^^^^^^^
130
f9f354fc 131error: positional arguments cannot follow named arguments or explicit register arguments
353b0b11 132 --> $DIR/parse-error.rs:65:36
f9f354fc
XL
133 |
134LL | asm!("{1}", in("eax") foo, const bar);
135 | ------------- ^^^^^^^^^ positional argument
136 | |
137 | explicit register argument
138
94222f64 139error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `""`
353b0b11 140 --> $DIR/parse-error.rs:68:29
f035d41b
XL
141 |
142LL | asm!("", options(), "");
94222f64 143 | ^^ expected one of 9 possible tokens
f035d41b 144
94222f64 145error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"{}"`
353b0b11 146 --> $DIR/parse-error.rs:70:33
f035d41b
XL
147 |
148LL | asm!("{}", in(reg) foo, "{}", out(reg) foo);
94222f64 149 | ^^^^ expected one of 9 possible tokens
f035d41b
XL
150
151error: asm template must be a string literal
353b0b11 152 --> $DIR/parse-error.rs:72:14
f035d41b
XL
153 |
154LL | asm!(format!("{{{}}}", 0), in(reg) foo);
155 | ^^^^^^^^^^^^^^^^^^^^
156 |
17df50a5 157 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
f035d41b
XL
158
159error: asm template must be a string literal
353b0b11 160 --> $DIR/parse-error.rs:74:21
f035d41b
XL
161 |
162LL | asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar);
163 | ^^^^^^^^^^^^^^^^^^^^
164 |
17df50a5
XL
165 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
166
c295e0f8 167error: _ cannot be used for input operands
353b0b11 168 --> $DIR/parse-error.rs:76:28
c295e0f8
XL
169 |
170LL | asm!("{}", in(reg) _);
171 | ^
172
173error: _ cannot be used for input operands
353b0b11 174 --> $DIR/parse-error.rs:78:31
c295e0f8
XL
175 |
176LL | asm!("{}", inout(reg) _);
177 | ^
178
179error: _ cannot be used for input operands
353b0b11 180 --> $DIR/parse-error.rs:80:35
c295e0f8
XL
181 |
182LL | asm!("{}", inlateout(reg) _);
183 | ^
184
17df50a5 185error: requires at least a template string argument
353b0b11 186 --> $DIR/parse-error.rs:87:1
17df50a5
XL
187 |
188LL | global_asm!();
c295e0f8 189 | ^^^^^^^^^^^^^
17df50a5
XL
190
191error: asm template must be a string literal
353b0b11 192 --> $DIR/parse-error.rs:89:13
17df50a5
XL
193 |
194LL | global_asm!(FOO);
195 | ^^^
196
197error: expected token: `,`
353b0b11 198 --> $DIR/parse-error.rs:91:18
17df50a5
XL
199 |
200LL | global_asm!("{}" FOO);
201 | ^^^ expected `,`
202
203error: expected operand, options, or additional template string
353b0b11 204 --> $DIR/parse-error.rs:93:19
17df50a5
XL
205 |
206LL | global_asm!("{}", FOO);
207 | ^^^ expected operand, options, or additional template string
208
209error: expected expression, found end of macro arguments
353b0b11 210 --> $DIR/parse-error.rs:95:24
17df50a5
XL
211 |
212LL | global_asm!("{}", const);
213 | ^ expected expression
214
215error: expected one of `,`, `.`, `?`, or an operator, found `FOO`
353b0b11 216 --> $DIR/parse-error.rs:97:30
17df50a5
XL
217 |
218LL | global_asm!("{}", const(reg) FOO);
219 | ^^^ expected one of `,`, `.`, `?`, or an operator
220
064997fb 221error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
353b0b11 222 --> $DIR/parse-error.rs:99:25
17df50a5
XL
223 |
224LL | global_asm!("", options(FOO));
064997fb 225 | ^^^ expected one of `)`, `att_syntax`, or `raw`
17df50a5 226
064997fb 227error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
353b0b11 228 --> $DIR/parse-error.rs:101:25
17df50a5
XL
229 |
230LL | global_asm!("", options(nomem FOO));
064997fb 231 | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
17df50a5 232
064997fb 233error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
353b0b11 234 --> $DIR/parse-error.rs:103:25
17df50a5
XL
235 |
236LL | global_asm!("", options(nomem, FOO));
064997fb 237 | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
17df50a5 238
94222f64 239error: expected string literal
353b0b11 240 --> $DIR/parse-error.rs:106:29
94222f64
XL
241 |
242LL | global_asm!("", clobber_abi(FOO));
243 | ^^^ not a string literal
244
3c0e092e 245error: expected one of `)` or `,`, found `FOO`
353b0b11 246 --> $DIR/parse-error.rs:108:33
94222f64
XL
247 |
248LL | global_asm!("", clobber_abi("C" FOO));
3c0e092e 249 | ^^^ expected one of `)` or `,`
94222f64 250
3c0e092e 251error: expected string literal
353b0b11 252 --> $DIR/parse-error.rs:110:34
94222f64
XL
253 |
254LL | global_asm!("", clobber_abi("C", FOO));
3c0e092e 255 | ^^^ not a string literal
94222f64 256
94222f64 257error: `clobber_abi` cannot be used with `global_asm!`
353b0b11 258 --> $DIR/parse-error.rs:112:19
94222f64
XL
259 |
260LL | global_asm!("{}", clobber_abi("C"), const FOO);
261 | ^^^^^^^^^^^^^^^^
262
353b0b11
FG
263error: `clobber_abi` cannot be used with `global_asm!`
264 --> $DIR/parse-error.rs:114:28
94222f64
XL
265 |
266LL | global_asm!("", options(), clobber_abi("C"));
353b0b11 267 | ^^^^^^^^^^^^^^^^
94222f64 268
353b0b11
FG
269error: `clobber_abi` cannot be used with `global_asm!`
270 --> $DIR/parse-error.rs:116:30
94222f64
XL
271 |
272LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
353b0b11 273 | ^^^^^^^^^^^^^^^^
94222f64 274
3c0e092e 275error: `clobber_abi` cannot be used with `global_asm!`
353b0b11 276 --> $DIR/parse-error.rs:118:17
94222f64
XL
277 |
278LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));
3c0e092e 279 | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
94222f64 280
17df50a5 281error: duplicate argument named `a`
353b0b11 282 --> $DIR/parse-error.rs:120:35
17df50a5
XL
283 |
284LL | global_asm!("{a}", a = const FOO, a = const BAR);
285 | ------------- ^^^^^^^^^^^^^ duplicate argument
286 | |
287 | previously here
288
289error: argument never used
353b0b11 290 --> $DIR/parse-error.rs:120:35
17df50a5
XL
291 |
292LL | global_asm!("{a}", a = const FOO, a = const BAR);
293 | ^^^^^^^^^^^^^ argument never used
294 |
295 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
296
04454e1e 297error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
353b0b11 298 --> $DIR/parse-error.rs:123:28
17df50a5
XL
299 |
300LL | global_asm!("", options(), "");
04454e1e 301 | ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
17df50a5 302
04454e1e 303error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
353b0b11 304 --> $DIR/parse-error.rs:125:30
17df50a5
XL
305 |
306LL | global_asm!("{}", const FOO, "{}", const FOO);
04454e1e 307 | ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
17df50a5
XL
308
309error: asm template must be a string literal
353b0b11 310 --> $DIR/parse-error.rs:127:13
17df50a5
XL
311 |
312LL | global_asm!(format!("{{{}}}", 0), const FOO);
313 | ^^^^^^^^^^^^^^^^^^^^
314 |
315 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
316
317error: asm template must be a string literal
353b0b11 318 --> $DIR/parse-error.rs:129:20
17df50a5
XL
319 |
320LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
321 | ^^^^^^^^^^^^^^^^^^^^
322 |
323 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
f035d41b 324
cdc7bbd5 325error[E0435]: attempt to use a non-constant value in a constant
a2a8927a 326 --> $DIR/parse-error.rs:39:37
cdc7bbd5
XL
327 |
328LL | let mut foo = 0;
5099ac24 329 | ----------- help: consider using `const` instead of `let`: `const foo`
cdc7bbd5
XL
330...
331LL | asm!("{}", options(), const foo);
332 | ^^^ non-constant value
333
334error[E0435]: attempt to use a non-constant value in a constant
353b0b11 335 --> $DIR/parse-error.rs:49:44
94222f64
XL
336 |
337LL | let mut foo = 0;
5099ac24 338 | ----------- help: consider using `const` instead of `let`: `const foo`
94222f64
XL
339...
340LL | asm!("{}", clobber_abi("C"), const foo);
341 | ^^^ non-constant value
342
343error[E0435]: attempt to use a non-constant value in a constant
353b0b11
FG
344 --> $DIR/parse-error.rs:52:55
345 |
346LL | let mut foo = 0;
347 | ----------- help: consider using `const` instead of `let`: `const foo`
348...
349LL | asm!("{}", options(), clobber_abi("C"), const foo);
350 | ^^^ non-constant value
351
352error[E0435]: attempt to use a non-constant value in a constant
353 --> $DIR/parse-error.rs:54:31
cdc7bbd5
XL
354 |
355LL | let mut foo = 0;
5099ac24 356 | ----------- help: consider using `const` instead of `let`: `const foo`
cdc7bbd5
XL
357...
358LL | asm!("{a}", a = const foo, a = const bar);
359 | ^^^ non-constant value
360
361error[E0435]: attempt to use a non-constant value in a constant
353b0b11 362 --> $DIR/parse-error.rs:54:46
cdc7bbd5
XL
363 |
364LL | let mut bar = 0;
5099ac24 365 | ----------- help: consider using `const` instead of `let`: `const bar`
cdc7bbd5
XL
366...
367LL | asm!("{a}", a = const foo, a = const bar);
368 | ^^^ non-constant value
369
370error[E0435]: attempt to use a non-constant value in a constant
353b0b11 371 --> $DIR/parse-error.rs:61:46
cdc7bbd5
XL
372 |
373LL | let mut bar = 0;
5099ac24 374 | ----------- help: consider using `const` instead of `let`: `const bar`
cdc7bbd5
XL
375...
376LL | asm!("{a}", in("eax") foo, a = const bar);
377 | ^^^ non-constant value
378
379error[E0435]: attempt to use a non-constant value in a constant
353b0b11 380 --> $DIR/parse-error.rs:63:46
cdc7bbd5
XL
381 |
382LL | let mut bar = 0;
5099ac24 383 | ----------- help: consider using `const` instead of `let`: `const bar`
cdc7bbd5
XL
384...
385LL | asm!("{a}", in("eax") foo, a = const bar);
386 | ^^^ non-constant value
387
388error[E0435]: attempt to use a non-constant value in a constant
353b0b11 389 --> $DIR/parse-error.rs:65:42
cdc7bbd5
XL
390 |
391LL | let mut bar = 0;
5099ac24 392 | ----------- help: consider using `const` instead of `let`: `const bar`
cdc7bbd5
XL
393...
394LL | asm!("{1}", in("eax") foo, const bar);
395 | ^^^ non-constant value
396
353b0b11 397error: aborting due to 59 previous errors
f9f354fc 398
cdc7bbd5 399For more information about this error, try `rustc --explain E0435`.