@@ -71,73 +71,75 @@ LL | const async unsafe extern "C" fn fi5() {}
71
71
| `const` because of this
72
72
73
73
error: 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
75
75
|
76
76
LL | extern "C" {
77
77
| ---------- in this `extern` block
78
78
LL | async fn fe1();
79
- | ^^^
80
- |
81
- help: remove the qualifiers
82
- |
83
- LL | fn fe1();
84
- | ~~
79
+ | ^^^^^ help: remove this qualifier
85
80
86
81
error: 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
88
83
|
89
84
LL | extern "C" {
90
85
| ---------- in this `extern` block
91
86
LL | async fn fe1();
92
87
LL | unsafe fn fe2();
93
- | ^^^
94
- |
95
- help: remove the qualifiers
96
- |
97
- LL | fn fe2();
98
- | ~~
88
+ | ^^^^^^ help: remove this qualifier
99
89
100
90
error: 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
102
92
|
103
93
LL | extern "C" {
104
94
| ---------- in this `extern` block
105
95
...
106
96
LL | const fn fe3();
107
- | ^^^
108
- |
109
- help: remove the qualifiers
110
- |
111
- LL | fn fe3();
112
- | ~~
97
+ | ^^^^^ help: remove this qualifier
113
98
114
99
error: 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
116
101
|
117
102
LL | extern "C" {
118
103
| ---------- in this `extern` block
119
104
...
120
105
LL | 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
124
110
|
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
127
116
128
117
error: 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
130
119
|
131
120
LL | extern "C" {
132
121
| ---------- in this `extern` block
133
122
...
134
123
LL | 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
136
128
|
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
138
137
|
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
141
143
142
144
error: functions cannot be both `const` and `async`
143
145
--> $DIR/fn-header-semantic-fail.rs:50:9
@@ -148,6 +150,6 @@ LL | const async unsafe extern "C" fn fe5();
148
150
| | `async` because of this
149
151
| `const` because of this
150
152
151
- error: aborting due to 14 previous errors
153
+ error: aborting due to 17 previous errors
152
154
153
155
For more information about this error, try `rustc --explain E0379`.
0 commit comments