@@ -108,9 +108,12 @@ error: functions in `extern` blocks cannot have qualifiers
108108LL | extern {
109109 | ------ in this `extern` block
110110LL | async fn fe1();
111- | ---------^^^
112- | |
113- | help: remove the qualifiers: `fn`
111+ | ^^^
112+ |
113+ help: remove the qualifiers
114+ |
115+ LL | fn fe1();
116+ | ^^
114117
115118error: functions in `extern` blocks cannot have qualifiers
116119 --> $DIR/fn-header-semantic-fail.rs:52:19
@@ -119,9 +122,12 @@ LL | extern {
119122 | ------ in this `extern` block
120123LL | async fn fe1();
121124LL | unsafe fn fe2();
122- | ----------^^^
123- | |
124- | help: remove the qualifiers: `fn`
125+ | ^^^
126+ |
127+ help: remove the qualifiers
128+ |
129+ LL | fn fe2();
130+ | ^^
125131
126132error: functions in `extern` blocks cannot have qualifiers
127133 --> $DIR/fn-header-semantic-fail.rs:53:18
@@ -130,9 +136,12 @@ LL | extern {
130136 | ------ in this `extern` block
131137...
132138LL | const fn fe3();
133- | ---------^^^
134- | |
135- | help: remove the qualifiers: `fn`
139+ | ^^^
140+ |
141+ help: remove the qualifiers
142+ |
143+ LL | fn fe3();
144+ | ^^
136145
137146error: functions in `extern` blocks cannot have qualifiers
138147 --> $DIR/fn-header-semantic-fail.rs:54:23
@@ -141,9 +150,12 @@ LL | extern {
141150 | ------ in this `extern` block
142151...
143152LL | 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+ | ^^
147159
148160error: functions in `extern` blocks cannot have qualifiers
149161 --> $DIR/fn-header-semantic-fail.rs:55:42
@@ -152,9 +164,12 @@ LL | extern {
152164 | ------ in this `extern` block
153165...
154166LL | 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+ | ^^
158173
159174error: functions cannot be both `const` and `async`
160175 --> $DIR/fn-header-semantic-fail.rs:55:9
0 commit comments