@@ -71,73 +71,75 @@ LL | const async unsafe extern "C" fn fi5() {}
7171 | `const` because of this
7272
7373error: functions in `extern` blocks cannot have qualifiers
74- --> $DIR/fn-header-semantic-fail.rs:46:18
74+ --> $DIR/fn-header-semantic-fail.rs:46:9
7575 |
7676LL | extern "C" {
7777 | ---------- in this `extern` block
7878LL | async fn fe1();
79- | ^^^
80- |
81- help: remove the qualifiers
82- |
83- LL | fn fe1();
84- | ~~
79+ | ^^^^^ help: remove this qualifier
8580
8681error: functions in `extern` blocks cannot have qualifiers
87- --> $DIR/fn-header-semantic-fail.rs:47:19
82+ --> $DIR/fn-header-semantic-fail.rs:47:9
8883 |
8984LL | extern "C" {
9085 | ---------- in this `extern` block
9186LL | async fn fe1();
9287LL | unsafe fn fe2();
93- | ^^^
94- |
95- help: remove the qualifiers
96- |
97- LL | fn fe2();
98- | ~~
88+ | ^^^^^^ help: remove this qualifier
9989
10090error: functions in `extern` blocks cannot have qualifiers
101- --> $DIR/fn-header-semantic-fail.rs:48:18
91+ --> $DIR/fn-header-semantic-fail.rs:48:9
10292 |
10393LL | extern "C" {
10494 | ---------- in this `extern` block
10595...
10696LL | const fn fe3();
107- | ^^^
108- |
109- help: remove the qualifiers
110- |
111- LL | fn fe3();
112- | ~~
97+ | ^^^^^ help: remove this qualifier
11398
11499error: functions in `extern` blocks cannot have qualifiers
115- --> $DIR/fn-header-semantic-fail.rs:49:23
100+ --> $DIR/fn-header-semantic-fail.rs:49:9
116101 |
117102LL | extern "C" {
118103 | ---------- in this `extern` block
119104...
120105LL | extern "C" fn fe4();
121- | ^^^
122- |
123- help: remove the qualifiers
106+ | ^^^^^^^^^^ help: remove this qualifier
107+
108+ error: functions in `extern` blocks cannot have qualifiers
109+ --> $DIR/fn-header-semantic-fail.rs:50:21
124110 |
125- LL | fn fe4();
126- | ~~
111+ LL | extern "C" {
112+ | ---------- in this `extern` block
113+ ...
114+ LL | const async unsafe extern "C" fn fe5();
115+ | ^^^^^^ help: remove this qualifier
127116
128117error: functions in `extern` blocks cannot have qualifiers
129- --> $DIR/fn-header-semantic-fail.rs:50:42
118+ --> $DIR/fn-header-semantic-fail.rs:50:15
130119 |
131120LL | extern "C" {
132121 | ---------- in this `extern` block
133122...
134123LL | const async unsafe extern "C" fn fe5();
135- | ^^^
124+ | ^^^^^ help: remove this qualifier
125+
126+ error: functions in `extern` blocks cannot have qualifiers
127+ --> $DIR/fn-header-semantic-fail.rs:50:9
136128 |
137- help: remove the qualifiers
129+ LL | extern "C" {
130+ | ---------- in this `extern` block
131+ ...
132+ LL | const async unsafe extern "C" fn fe5();
133+ | ^^^^^ help: remove this qualifier
134+
135+ error: functions in `extern` blocks cannot have qualifiers
136+ --> $DIR/fn-header-semantic-fail.rs:50:28
138137 |
139- LL | fn fe5();
140- | ~~
138+ LL | extern "C" {
139+ | ---------- in this `extern` block
140+ ...
141+ LL | const async unsafe extern "C" fn fe5();
142+ | ^^^^^^^^^^ help: remove this qualifier
141143
142144error: functions cannot be both `const` and `async`
143145 --> $DIR/fn-header-semantic-fail.rs:50:9
@@ -148,6 +150,6 @@ LL | const async unsafe extern "C" fn fe5();
148150 | | `async` because of this
149151 | `const` because of this
150152
151- error: aborting due to 14 previous errors
153+ error: aborting due to 17 previous errors
152154
153155For more information about this error, try `rustc --explain E0379`.
0 commit comments