]> git.proxmox.com Git - rustc.git/blame - src/test/ui/asm/bad-template.thirunsafeck.stderr
New upstream version 1.56.0+dfsg1
[rustc.git] / src / test / ui / asm / bad-template.thirunsafeck.stderr
CommitLineData
17df50a5
XL
1error: invalid reference to argument at index 0
2 --> $DIR/bad-template.rs:10:15
3 |
4LL | asm!("{}");
5 | ^^ from here
6 |
7 = note: no arguments were given
8
9error: invalid reference to argument at index 1
10 --> $DIR/bad-template.rs:12:15
11 |
12LL | asm!("{1}", in(reg) foo);
13 | ^^^ from here
14 |
15 = note: there is 1 argument
16
17error: argument never used
18 --> $DIR/bad-template.rs:12:21
19 |
20LL | asm!("{1}", in(reg) foo);
21 | ^^^^^^^^^^^ argument never used
22 |
23 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {0} */"`
24
25error: there is no argument named `a`
26 --> $DIR/bad-template.rs:15:15
27 |
28LL | asm!("{a}");
29 | ^^^
30
31error: invalid reference to argument at index 0
32 --> $DIR/bad-template.rs:17:15
33 |
34LL | asm!("{}", a = in(reg) foo);
35 | ^^ --------------- named argument
36 | |
37 | from here
38 |
39 = note: no positional arguments were given
40note: named arguments cannot be referenced by position
41 --> $DIR/bad-template.rs:17:20
42 |
43LL | asm!("{}", a = in(reg) foo);
44 | ^^^^^^^^^^^^^^^
45
46error: named argument never used
47 --> $DIR/bad-template.rs:17:20
48 |
49LL | asm!("{}", a = in(reg) foo);
50 | ^^^^^^^^^^^^^^^ named argument never used
51 |
52 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
53
54error: invalid reference to argument at index 1
55 --> $DIR/bad-template.rs:20:15
56 |
57LL | asm!("{1}", a = in(reg) foo);
58 | ^^^ from here
59 |
60 = note: no positional arguments were given
61
62error: named argument never used
63 --> $DIR/bad-template.rs:20:21
64 |
65LL | asm!("{1}", a = in(reg) foo);
66 | ^^^^^^^^^^^^^^^ named argument never used
67 |
68 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
69
70error: invalid reference to argument at index 0
71 --> $DIR/bad-template.rs:23:15
72 |
73LL | asm!("{}", in("eax") foo);
74 | ^^ ------------- explicit register argument
75 | |
76 | from here
77 |
78 = note: no positional arguments were given
79note: explicit register arguments cannot be used in the asm template
80 --> $DIR/bad-template.rs:23:20
81 |
82LL | asm!("{}", in("eax") foo);
83 | ^^^^^^^^^^^^^
84
85error: asm template modifier must be a single character
86 --> $DIR/bad-template.rs:25:17
87 |
88LL | asm!("{:foo}", in(reg) foo);
89 | ^^^
90
91error: multiple unused asm arguments
92 --> $DIR/bad-template.rs:27:18
93 |
94LL | asm!("", in(reg) 0, in(reg) 1);
95 | ^^^^^^^^^ ^^^^^^^^^ argument never used
96 | |
97 | argument never used
98 |
99 = help: if these arguments are intentionally unused, consider using them in an asm comment: `"/* {0} {1} */"`
100
101error: invalid reference to argument at index 0
102 --> $DIR/bad-template.rs:33:14
103 |
104LL | global_asm!("{}");
105 | ^^ from here
106 |
107 = note: no arguments were given
108
109error: invalid reference to argument at index 1
110 --> $DIR/bad-template.rs:35:14
111 |
112LL | global_asm!("{1}", const FOO);
113 | ^^^ from here
114 |
115 = note: there is 1 argument
116
117error: argument never used
118 --> $DIR/bad-template.rs:35:20
119 |
120LL | global_asm!("{1}", const FOO);
121 | ^^^^^^^^^ argument never used
122 |
123 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {0} */"`
124
125error: there is no argument named `a`
126 --> $DIR/bad-template.rs:38:14
127 |
128LL | global_asm!("{a}");
129 | ^^^
130
131error: invalid reference to argument at index 0
132 --> $DIR/bad-template.rs:40:14
133 |
134LL | global_asm!("{}", a = const FOO);
135 | ^^ ------------- named argument
136 | |
137 | from here
138 |
139 = note: no positional arguments were given
140note: named arguments cannot be referenced by position
141 --> $DIR/bad-template.rs:40:19
142 |
143LL | global_asm!("{}", a = const FOO);
144 | ^^^^^^^^^^^^^
145
146error: named argument never used
147 --> $DIR/bad-template.rs:40:19
148 |
149LL | global_asm!("{}", a = const FOO);
150 | ^^^^^^^^^^^^^ named argument never used
151 |
152 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
153
154error: invalid reference to argument at index 1
155 --> $DIR/bad-template.rs:43:14
156 |
157LL | global_asm!("{1}", a = const FOO);
158 | ^^^ from here
159 |
160 = note: no positional arguments were given
161
162error: named argument never used
163 --> $DIR/bad-template.rs:43:20
164 |
165LL | global_asm!("{1}", a = const FOO);
166 | ^^^^^^^^^^^^^ named argument never used
167 |
168 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
169
170error: asm template modifier must be a single character
171 --> $DIR/bad-template.rs:46:16
172 |
173LL | global_asm!("{:foo}", const FOO);
174 | ^^^
175
176error: multiple unused asm arguments
177 --> $DIR/bad-template.rs:48:17
178 |
179LL | global_asm!("", const FOO, const FOO);
180 | ^^^^^^^^^ ^^^^^^^^^ argument never used
181 | |
182 | argument never used
183 |
184 = help: if these arguments are intentionally unused, consider using them in an asm comment: `"/* {0} {1} */"`
185
186error: aborting due to 21 previous errors
187