@@ -108,9 +108,12 @@ error: functions in `extern` blocks cannot have qualifiers
108
108
LL | extern {
109
109
| ------ in this `extern` block
110
110
LL | async fn fe1();
111
- | ---------^^^
112
- | |
113
- | help: remove the qualifiers: `fn`
111
+ | ^^^
112
+ |
113
+ help: remove the qualifiers
114
+ |
115
+ LL | fn fe1();
116
+ | ^^
114
117
115
118
error: functions in `extern` blocks cannot have qualifiers
116
119
--> $DIR/fn-header-semantic-fail.rs:52:19
@@ -119,9 +122,12 @@ LL | extern {
119
122
| ------ in this `extern` block
120
123
LL | async fn fe1();
121
124
LL | unsafe fn fe2();
122
- | ----------^^^
123
- | |
124
- | help: remove the qualifiers: `fn`
125
+ | ^^^
126
+ |
127
+ help: remove the qualifiers
128
+ |
129
+ LL | fn fe2();
130
+ | ^^
125
131
126
132
error: functions in `extern` blocks cannot have qualifiers
127
133
--> $DIR/fn-header-semantic-fail.rs:53:18
@@ -130,9 +136,12 @@ LL | extern {
130
136
| ------ in this `extern` block
131
137
...
132
138
LL | const fn fe3();
133
- | ---------^^^
134
- | |
135
- | help: remove the qualifiers: `fn`
139
+ | ^^^
140
+ |
141
+ help: remove the qualifiers
142
+ |
143
+ LL | fn fe3();
144
+ | ^^
136
145
137
146
error: functions in `extern` blocks cannot have qualifiers
138
147
--> $DIR/fn-header-semantic-fail.rs:54:23
@@ -141,9 +150,12 @@ LL | extern {
141
150
| ------ in this `extern` block
142
151
...
143
152
LL | extern "C" fn fe4();
144
- | --------------^^^
145
- | |
146
- | help: remove the qualifiers: `fn`
153
+ | ^^^
154
+ |
155
+ help: remove the qualifiers
156
+ |
157
+ LL | fn fe4();
158
+ | ^^
147
159
148
160
error: functions in `extern` blocks cannot have qualifiers
149
161
--> $DIR/fn-header-semantic-fail.rs:55:42
@@ -152,9 +164,12 @@ LL | extern {
152
164
| ------ in this `extern` block
153
165
...
154
166
LL | const async unsafe extern "C" fn fe5();
155
- | ---------------------------------^^^
156
- | |
157
- | help: remove the qualifiers: `fn`
167
+ | ^^^
168
+ |
169
+ help: remove the qualifiers
170
+ |
171
+ LL | fn fe5();
172
+ | ^^
158
173
159
174
error: functions cannot be both `const` and `async`
160
175
--> $DIR/fn-header-semantic-fail.rs:55:9
0 commit comments