]> git.proxmox.com Git - rustc.git/blame - src/test/ui/asm/parse-error.stderr
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / asm / parse-error.stderr
CommitLineData
f9f354fc
XL
1error: requires at least a template string argument
2 --> $DIR/parse-error.rs:9:9
3 |
4LL | asm!();
5 | ^^^^^^^
6
7error: asm template must be a string literal
8 --> $DIR/parse-error.rs:11:14
9 |
10LL | asm!(foo);
11 | ^^^
12
13error: expected token: `,`
14 --> $DIR/parse-error.rs:13:19
15 |
16LL | asm!("{}" foo);
17 | ^^^ expected `,`
18
19error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `foo`
20 --> $DIR/parse-error.rs:15:20
21 |
22LL | asm!("{}", foo);
23 | ^^^ expected one of 8 possible tokens
24
25error: expected `(`, found `foo`
26 --> $DIR/parse-error.rs:17:23
27 |
28LL | asm!("{}", in foo);
29 | ^^^ expected `(`
30
31error: expected `)`, found `foo`
32 --> $DIR/parse-error.rs:19:27
33 |
34LL | asm!("{}", in(reg foo));
35 | ^^^ expected `)`
36
37error: expected expression, found end of macro arguments
38 --> $DIR/parse-error.rs:21:27
39 |
40LL | asm!("{}", in(reg));
41 | ^ expected expression
42
43error: expected register class or explicit register
44 --> $DIR/parse-error.rs:23:26
45 |
46LL | asm!("{}", inout(=) foo => bar);
47 | ^
48
49error: expected expression, found end of macro arguments
50 --> $DIR/parse-error.rs:25:37
51 |
52LL | asm!("{}", inout(reg) foo =>);
53 | ^ expected expression
54
55error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `=>`
56 --> $DIR/parse-error.rs:27:32
57 |
58LL | asm!("{}", in(reg) foo => bar);
59 | ^^ expected one of 7 possible tokens
60
61error: argument to `sym` must be a path expression
62 --> $DIR/parse-error.rs:29:24
63 |
64LL | asm!("{}", sym foo + bar);
65 | ^^^^^^^^^
66
67error: expected one of `)`, `att_syntax`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, or `readonly`, found `foo`
68 --> $DIR/parse-error.rs:31:26
69 |
70LL | asm!("", options(foo));
71 | ^^^ expected one of 8 possible tokens
72
73error: expected one of `)` or `,`, found `foo`
74 --> $DIR/parse-error.rs:33:32
75 |
76LL | asm!("", options(nomem foo));
77 | ^^^ expected one of `)` or `,`
78
79error: expected one of `)`, `att_syntax`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, or `readonly`, found `foo`
80 --> $DIR/parse-error.rs:35:33
81 |
82LL | asm!("", options(nomem, foo));
83 | ^^^ expected one of 8 possible tokens
84
85error: asm options cannot be specified multiple times
86 --> $DIR/parse-error.rs:37:29
87 |
88LL | asm!("", options(), options());
89 | --------- ^^^^^^^^^ duplicate options
90 | |
91 | previously here
92
93error: asm options cannot be specified multiple times
94 --> $DIR/parse-error.rs:39:29
95 |
96LL | asm!("", options(), options(), options());
97 | --------- ^^^^^^^^^ duplicate options
98 | |
99 | previously here
100
101error: asm options cannot be specified multiple times
102 --> $DIR/parse-error.rs:39:40
103 |
104LL | asm!("", options(), options(), options());
105 | --------- ^^^^^^^^^ duplicate options
106 | |
107 | previously here
108
109error: arguments are not allowed after options
110 --> $DIR/parse-error.rs:42:31
111 |
112LL | asm!("{}", options(), const foo);
113 | --------- ^^^^^^^^^ argument
114 | |
115 | previous options
116
117error: duplicate argument named `a`
118 --> $DIR/parse-error.rs:44:36
119 |
120LL | asm!("{a}", a = const foo, a = const bar);
121 | ------------- ^^^^^^^^^^^^^ duplicate argument
122 | |
123 | previously here
124
125error: argument never used
126 --> $DIR/parse-error.rs:44:36
127 |
128LL | asm!("{a}", a = const foo, a = const bar);
129 | ^^^^^^^^^^^^^ argument never used
130
131error: explicit register arguments cannot have names
132 --> $DIR/parse-error.rs:47:18
133 |
134LL | asm!("", a = in("eax") foo);
135 | ^^^^^^^^^^^^^^^^^
136
137error: named arguments cannot follow explicit register arguments
138 --> $DIR/parse-error.rs:49:36
139 |
140LL | asm!("{a}", in("eax") foo, a = const bar);
141 | ------------- ^^^^^^^^^^^^^ named argument
142 | |
143 | explicit register argument
144
145error: named arguments cannot follow explicit register arguments
146 --> $DIR/parse-error.rs:51:36
147 |
148LL | asm!("{a}", in("eax") foo, a = const bar);
149 | ------------- ^^^^^^^^^^^^^ named argument
150 | |
151 | explicit register argument
152
153error: positional arguments cannot follow named arguments or explicit register arguments
154 --> $DIR/parse-error.rs:53:36
155 |
156LL | asm!("{1}", in("eax") foo, const bar);
157 | ------------- ^^^^^^^^^ positional argument
158 | |
159 | explicit register argument
160
161error: aborting due to 24 previous errors
162