@@ -70,13 +70,13 @@ LL | const async unsafe extern "C" fn fi5() {}
7070 | | `async` because of this
7171 | `const` because of this
7272
73- error: functions in `extern` blocks cannot have qualifiers
73+ error: functions in `extern` blocks cannot have `async` qualifier
7474 --> $DIR/fn-header-semantic-fail.rs:44:9
7575 |
7676LL | extern "C" {
7777 | ---------- in this `extern` block
7878LL | async fn fe1();
79- | ^^^^^ help: remove this qualifier
79+ | ^^^^^ help: remove the `async` qualifier
8080
8181error: items in `extern` blocks without an `unsafe` qualifier cannot have safety qualifiers
8282 --> $DIR/fn-header-semantic-fail.rs:45:9
@@ -89,50 +89,50 @@ help: add `unsafe` to this `extern` block
8989LL | unsafe extern "C" {
9090 | ++++++
9191
92- error: functions in `extern` blocks cannot have qualifiers
92+ error: functions in `extern` blocks cannot have `const` qualifier
9393 --> $DIR/fn-header-semantic-fail.rs:46:9
9494 |
9595LL | extern "C" {
9696 | ---------- in this `extern` block
9797...
9898LL | const fn fe3();
99- | ^^^^^ help: remove this qualifier
99+ | ^^^^^ help: remove the `const` qualifier
100100
101- error: functions in `extern` blocks cannot have qualifiers
101+ error: functions in `extern` blocks cannot have `extern` qualifier
102102 --> $DIR/fn-header-semantic-fail.rs:47:9
103103 |
104104LL | extern "C" {
105105 | ---------- in this `extern` block
106106...
107107LL | extern "C" fn fe4();
108- | ^^^^^^^^^^ help: remove this qualifier
108+ | ^^^^^^^^^^ help: remove the `extern` qualifier
109109
110- error: functions in `extern` blocks cannot have qualifiers
110+ error: functions in `extern` blocks cannot have `async` qualifier
111111 --> $DIR/fn-header-semantic-fail.rs:48:15
112112 |
113113LL | extern "C" {
114114 | ---------- in this `extern` block
115115...
116116LL | const async unsafe extern "C" fn fe5();
117- | ^^^^^ help: remove this qualifier
117+ | ^^^^^ help: remove the `async` qualifier
118118
119- error: functions in `extern` blocks cannot have qualifiers
119+ error: functions in `extern` blocks cannot have `const` qualifier
120120 --> $DIR/fn-header-semantic-fail.rs:48:9
121121 |
122122LL | extern "C" {
123123 | ---------- in this `extern` block
124124...
125125LL | const async unsafe extern "C" fn fe5();
126- | ^^^^^ help: remove this qualifier
126+ | ^^^^^ help: remove the `const` qualifier
127127
128- error: functions in `extern` blocks cannot have qualifiers
128+ error: functions in `extern` blocks cannot have `extern` qualifier
129129 --> $DIR/fn-header-semantic-fail.rs:48:28
130130 |
131131LL | extern "C" {
132132 | ---------- in this `extern` block
133133...
134134LL | const async unsafe extern "C" fn fe5();
135- | ^^^^^^^^^^ help: remove this qualifier
135+ | ^^^^^^^^^^ help: remove the `extern` qualifier
136136
137137error: items in `extern` blocks without an `unsafe` qualifier cannot have safety qualifiers
138138 --> $DIR/fn-header-semantic-fail.rs:48:9
0 commit comments