1
1
error: functions cannot be both `const` and `async`
2
- --> $DIR/fn-header-semantic-fail.rs:13 :5
2
+ --> $DIR/fn-header-semantic-fail.rs:12 :5
3
3
|
4
4
LL | const async unsafe extern "C" fn ff5() {} // OK.
5
5
| ^^^^^-^^^^^------------------------------
@@ -8,7 +8,7 @@ LL | const async unsafe extern "C" fn ff5() {} // OK.
8
8
| `const` because of this
9
9
10
10
error[E0706]: functions in traits cannot be declared `async`
11
- --> $DIR/fn-header-semantic-fail.rs:17 :9
11
+ --> $DIR/fn-header-semantic-fail.rs:16 :9
12
12
|
13
13
LL | async fn ft1();
14
14
| -----^^^^^^^^^^
@@ -19,19 +19,19 @@ LL | async fn ft1();
19
19
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
20
20
21
21
error[E0379]: functions in traits cannot be declared const
22
- --> $DIR/fn-header-semantic-fail.rs:19 :9
22
+ --> $DIR/fn-header-semantic-fail.rs:18 :9
23
23
|
24
24
LL | const fn ft3();
25
25
| ^^^^^ functions in traits cannot be const
26
26
27
27
error[E0379]: functions in traits cannot be declared const
28
- --> $DIR/fn-header-semantic-fail.rs:21 :9
28
+ --> $DIR/fn-header-semantic-fail.rs:20 :9
29
29
|
30
30
LL | const async unsafe extern "C" fn ft5();
31
31
| ^^^^^ functions in traits cannot be const
32
32
33
33
error[E0706]: functions in traits cannot be declared `async`
34
- --> $DIR/fn-header-semantic-fail.rs:21 :9
34
+ --> $DIR/fn-header-semantic-fail.rs:20 :9
35
35
|
36
36
LL | const async unsafe extern "C" fn ft5();
37
37
| ^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL | const async unsafe extern "C" fn ft5();
42
42
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
43
43
44
44
error: functions cannot be both `const` and `async`
45
- --> $DIR/fn-header-semantic-fail.rs:21 :9
45
+ --> $DIR/fn-header-semantic-fail.rs:20 :9
46
46
|
47
47
LL | const async unsafe extern "C" fn ft5();
48
48
| ^^^^^-^^^^^----------------------------
@@ -51,7 +51,7 @@ LL | const async unsafe extern "C" fn ft5();
51
51
| `const` because of this
52
52
53
53
error[E0706]: functions in traits cannot be declared `async`
54
- --> $DIR/fn-header-semantic-fail.rs:29 :9
54
+ --> $DIR/fn-header-semantic-fail.rs:28 :9
55
55
|
56
56
LL | async fn ft1() {}
57
57
| -----^^^^^^^^^^^^
@@ -62,19 +62,19 @@ LL | async fn ft1() {}
62
62
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
63
63
64
64
error[E0379]: functions in traits cannot be declared const
65
- --> $DIR/fn-header-semantic-fail.rs:32 :9
65
+ --> $DIR/fn-header-semantic-fail.rs:31 :9
66
66
|
67
67
LL | const fn ft3() {}
68
68
| ^^^^^ functions in traits cannot be const
69
69
70
70
error[E0379]: functions in traits cannot be declared const
71
- --> $DIR/fn-header-semantic-fail.rs:34 :9
71
+ --> $DIR/fn-header-semantic-fail.rs:33 :9
72
72
|
73
73
LL | const async unsafe extern "C" fn ft5() {}
74
74
| ^^^^^ functions in traits cannot be const
75
75
76
76
error[E0706]: functions in traits cannot be declared `async`
77
- --> $DIR/fn-header-semantic-fail.rs:34 :9
77
+ --> $DIR/fn-header-semantic-fail.rs:33 :9
78
78
|
79
79
LL | const async unsafe extern "C" fn ft5() {}
80
80
| ^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL | const async unsafe extern "C" fn ft5() {}
85
85
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
86
86
87
87
error: functions cannot be both `const` and `async`
88
- --> $DIR/fn-header-semantic-fail.rs:34 :9
88
+ --> $DIR/fn-header-semantic-fail.rs:33 :9
89
89
|
90
90
LL | const async unsafe extern "C" fn ft5() {}
91
91
| ^^^^^-^^^^^------------------------------
@@ -94,7 +94,7 @@ LL | const async unsafe extern "C" fn ft5() {}
94
94
| `const` because of this
95
95
96
96
error: functions cannot be both `const` and `async`
97
- --> $DIR/fn-header-semantic-fail.rs:46 :9
97
+ --> $DIR/fn-header-semantic-fail.rs:45 :9
98
98
|
99
99
LL | const async unsafe extern "C" fn fi5() {}
100
100
| ^^^^^-^^^^^------------------------------
@@ -103,7 +103,7 @@ LL | const async unsafe extern "C" fn fi5() {}
103
103
| `const` because of this
104
104
105
105
error: functions in `extern` blocks cannot have qualifiers
106
- --> $DIR/fn-header-semantic-fail.rs:51 :18
106
+ --> $DIR/fn-header-semantic-fail.rs:50 :18
107
107
|
108
108
LL | extern "C" {
109
109
| ---------- in this `extern` block
@@ -116,7 +116,7 @@ LL | fn fe1();
116
116
| ^^
117
117
118
118
error: functions in `extern` blocks cannot have qualifiers
119
- --> $DIR/fn-header-semantic-fail.rs:52 :19
119
+ --> $DIR/fn-header-semantic-fail.rs:51 :19
120
120
|
121
121
LL | extern "C" {
122
122
| ---------- in this `extern` block
@@ -130,7 +130,7 @@ LL | fn fe2();
130
130
| ^^
131
131
132
132
error: functions in `extern` blocks cannot have qualifiers
133
- --> $DIR/fn-header-semantic-fail.rs:53 :18
133
+ --> $DIR/fn-header-semantic-fail.rs:52 :18
134
134
|
135
135
LL | extern "C" {
136
136
| ---------- in this `extern` block
@@ -144,7 +144,7 @@ LL | fn fe3();
144
144
| ^^
145
145
146
146
error: functions in `extern` blocks cannot have qualifiers
147
- --> $DIR/fn-header-semantic-fail.rs:54 :23
147
+ --> $DIR/fn-header-semantic-fail.rs:53 :23
148
148
|
149
149
LL | extern "C" {
150
150
| ---------- in this `extern` block
@@ -158,7 +158,7 @@ LL | fn fe4();
158
158
| ^^
159
159
160
160
error: functions in `extern` blocks cannot have qualifiers
161
- --> $DIR/fn-header-semantic-fail.rs:55 :42
161
+ --> $DIR/fn-header-semantic-fail.rs:54 :42
162
162
|
163
163
LL | extern "C" {
164
164
| ---------- in this `extern` block
@@ -172,7 +172,7 @@ LL | fn fe5();
172
172
| ^^
173
173
174
174
error: functions cannot be both `const` and `async`
175
- --> $DIR/fn-header-semantic-fail.rs:55 :9
175
+ --> $DIR/fn-header-semantic-fail.rs:54 :9
176
176
|
177
177
LL | const async unsafe extern "C" fn fe5();
178
178
| ^^^^^-^^^^^----------------------------
@@ -181,7 +181,7 @@ LL | const async unsafe extern "C" fn fe5();
181
181
| `const` because of this
182
182
183
183
error[E0053]: method `ft1` has an incompatible type for trait
184
- --> $DIR/fn-header-semantic-fail.rs:29 :24
184
+ --> $DIR/fn-header-semantic-fail.rs:28 :24
185
185
|
186
186
LL | async fn ft1();
187
187
| - type in trait
@@ -197,7 +197,7 @@ LL | async fn ft1() {}
197
197
found fn pointer `fn() -> impl Future`
198
198
199
199
error[E0053]: method `ft5` has an incompatible type for trait
200
- --> $DIR/fn-header-semantic-fail.rs:34 :48
200
+ --> $DIR/fn-header-semantic-fail.rs:33 :48
201
201
|
202
202
LL | const async unsafe extern "C" fn ft5();
203
203
| - type in trait
0 commit comments