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