@@ -70,77 +70,77 @@ LL | const async unsafe extern "C" fn fi5() {}
70
70
| | `async` because of this
71
71
| `const` because of this
72
72
73
- error: functions in `extern` blocks cannot have qualifiers
73
+ error: functions in `extern` blocks cannot have `async` qualifier
74
74
--> $DIR/fn-header-semantic-fail.rs:44:9
75
75
|
76
76
LL | extern "C" {
77
77
| ---------- in this `extern` block
78
78
LL | async fn fe1();
79
- | ^^^^^ help: remove this qualifier
79
+ | ^^^^^ help: remove the `async` qualifier
80
80
81
- error: items in unadorned `extern` blocks cannot have safety qualifiers
81
+ error: items in `extern` blocks without an `unsafe` qualifier cannot have safety qualifiers
82
82
--> $DIR/fn-header-semantic-fail.rs:45:9
83
83
|
84
84
LL | unsafe fn fe2();
85
85
| ^^^^^^^^^^^^^^^^
86
86
|
87
- help: add unsafe to this `extern` block
87
+ help: add ` unsafe` to this `extern` block
88
88
|
89
89
LL | unsafe extern "C" {
90
90
| ++++++
91
91
92
- error: functions in `extern` blocks cannot have qualifiers
92
+ error: functions in `extern` blocks cannot have `const` qualifier
93
93
--> $DIR/fn-header-semantic-fail.rs:46:9
94
94
|
95
95
LL | extern "C" {
96
96
| ---------- in this `extern` block
97
97
...
98
98
LL | const fn fe3();
99
- | ^^^^^ help: remove this qualifier
99
+ | ^^^^^ help: remove the `const` qualifier
100
100
101
- error: functions in `extern` blocks cannot have qualifiers
101
+ error: functions in `extern` blocks cannot have `extern` qualifier
102
102
--> $DIR/fn-header-semantic-fail.rs:47:9
103
103
|
104
104
LL | extern "C" {
105
105
| ---------- in this `extern` block
106
106
...
107
107
LL | extern "C" fn fe4();
108
- | ^^^^^^^^^^ help: remove this qualifier
108
+ | ^^^^^^^^^^ help: remove the `extern` qualifier
109
109
110
- error: functions in `extern` blocks cannot have qualifiers
110
+ error: functions in `extern` blocks cannot have `async` qualifier
111
111
--> $DIR/fn-header-semantic-fail.rs:48:15
112
112
|
113
113
LL | extern "C" {
114
114
| ---------- in this `extern` block
115
115
...
116
116
LL | const async unsafe extern "C" fn fe5();
117
- | ^^^^^ help: remove this qualifier
117
+ | ^^^^^ help: remove the `async` qualifier
118
118
119
- error: functions in `extern` blocks cannot have qualifiers
119
+ error: functions in `extern` blocks cannot have `const` qualifier
120
120
--> $DIR/fn-header-semantic-fail.rs:48:9
121
121
|
122
122
LL | extern "C" {
123
123
| ---------- in this `extern` block
124
124
...
125
125
LL | const async unsafe extern "C" fn fe5();
126
- | ^^^^^ help: remove this qualifier
126
+ | ^^^^^ help: remove the `const` qualifier
127
127
128
- error: functions in `extern` blocks cannot have qualifiers
128
+ error: functions in `extern` blocks cannot have `extern` qualifier
129
129
--> $DIR/fn-header-semantic-fail.rs:48:28
130
130
|
131
131
LL | extern "C" {
132
132
| ---------- in this `extern` block
133
133
...
134
134
LL | const async unsafe extern "C" fn fe5();
135
- | ^^^^^^^^^^ help: remove this qualifier
135
+ | ^^^^^^^^^^ help: remove the `extern` qualifier
136
136
137
- error: items in unadorned `extern` blocks cannot have safety qualifiers
137
+ error: items in `extern` blocks without an `unsafe` qualifier cannot have safety qualifiers
138
138
--> $DIR/fn-header-semantic-fail.rs:48:9
139
139
|
140
140
LL | const async unsafe extern "C" fn fe5();
141
141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142
142
|
143
- help: add unsafe to this `extern` block
143
+ help: add ` unsafe` to this `extern` block
144
144
|
145
145
LL | unsafe extern "C" {
146
146
| ++++++
0 commit comments