1 error: requires at least a template string argument
2 --> $DIR/parse-error.rs:9:9
7 error: asm template must be a string literal
8 --> $DIR/parse-error.rs:11:14
13 error: expected token: `,`
14 --> $DIR/parse-error.rs:13:19
19 error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `foo`
20 --> $DIR/parse-error.rs:15:20
23 | ^^^ expected one of 8 possible tokens
25 error: expected `(`, found `foo`
26 --> $DIR/parse-error.rs:17:23
28 LL | asm!("{}", in foo);
31 error: expected `)`, found `foo`
32 --> $DIR/parse-error.rs:19:27
34 LL | asm!("{}", in(reg foo));
37 error: expected expression, found end of macro arguments
38 --> $DIR/parse-error.rs:21:27
40 LL | asm!("{}", in(reg));
41 | ^ expected expression
43 error: expected register class or explicit register
44 --> $DIR/parse-error.rs:23:26
46 LL | asm!("{}", inout(=) foo => bar);
49 error: expected expression, found end of macro arguments
50 --> $DIR/parse-error.rs:25:37
52 LL | asm!("{}", inout(reg) foo =>);
53 | ^ expected expression
55 error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `=>`
56 --> $DIR/parse-error.rs:27:32
58 LL | asm!("{}", in(reg) foo => bar);
59 | ^^ expected one of 7 possible tokens
61 error: argument to `sym` must be a path expression
62 --> $DIR/parse-error.rs:29:24
64 LL | asm!("{}", sym foo + bar);
67 error: expected one of `)`, `att_syntax`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, or `readonly`, found `foo`
68 --> $DIR/parse-error.rs:31:26
70 LL | asm!("", options(foo));
71 | ^^^ expected one of 8 possible tokens
73 error: expected one of `)` or `,`, found `foo`
74 --> $DIR/parse-error.rs:33:32
76 LL | asm!("", options(nomem foo));
77 | ^^^ expected one of `)` or `,`
79 error: expected one of `)`, `att_syntax`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, or `readonly`, found `foo`
80 --> $DIR/parse-error.rs:35:33
82 LL | asm!("", options(nomem, foo));
83 | ^^^ expected one of 8 possible tokens
85 error: asm options cannot be specified multiple times
86 --> $DIR/parse-error.rs:37:29
88 LL | asm!("", options(), options());
89 | --------- ^^^^^^^^^ duplicate options
93 error: asm options cannot be specified multiple times
94 --> $DIR/parse-error.rs:39:29
96 LL | asm!("", options(), options(), options());
97 | --------- ^^^^^^^^^ duplicate options
101 error: asm options cannot be specified multiple times
102 --> $DIR/parse-error.rs:39:40
104 LL | asm!("", options(), options(), options());
105 | --------- ^^^^^^^^^ duplicate options
109 error: arguments are not allowed after options
110 --> $DIR/parse-error.rs:42:31
112 LL | asm!("{}", options(), const foo);
113 | --------- ^^^^^^^^^ argument
117 error: duplicate argument named `a`
118 --> $DIR/parse-error.rs:44:36
120 LL | asm!("{a}", a = const foo, a = const bar);
121 | ------------- ^^^^^^^^^^^^^ duplicate argument
125 error: argument never used
126 --> $DIR/parse-error.rs:44:36
128 LL | asm!("{a}", a = const foo, a = const bar);
129 | ^^^^^^^^^^^^^ argument never used
131 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
133 error: explicit register arguments cannot have names
134 --> $DIR/parse-error.rs:47:18
136 LL | asm!("", a = in("eax") foo);
139 error: named arguments cannot follow explicit register arguments
140 --> $DIR/parse-error.rs:49:36
142 LL | asm!("{a}", in("eax") foo, a = const bar);
143 | ------------- ^^^^^^^^^^^^^ named argument
145 | explicit register argument
147 error: named arguments cannot follow explicit register arguments
148 --> $DIR/parse-error.rs:51:36
150 LL | asm!("{a}", in("eax") foo, a = const bar);
151 | ------------- ^^^^^^^^^^^^^ named argument
153 | explicit register argument
155 error: positional arguments cannot follow named arguments or explicit register arguments
156 --> $DIR/parse-error.rs:53:36
158 LL | asm!("{1}", in("eax") foo, const bar);
159 | ------------- ^^^^^^^^^ positional argument
161 | explicit register argument
163 error: aborting due to 24 previous errors