LL | extern {
| ------ in this `extern` block
LL | async fn fe1();
- | ---------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn fe1();
+ | ^^
error: functions in `extern` blocks cannot have qualifiers
--> $DIR/fn-header-semantic-fail.rs:52:19
| ------ in this `extern` block
LL | async fn fe1();
LL | unsafe fn fe2();
- | ----------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn fe2();
+ | ^^
error: functions in `extern` blocks cannot have qualifiers
--> $DIR/fn-header-semantic-fail.rs:53:18
| ------ in this `extern` block
...
LL | const fn fe3();
- | ---------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn fe3();
+ | ^^
error: functions in `extern` blocks cannot have qualifiers
--> $DIR/fn-header-semantic-fail.rs:54:23
| ------ in this `extern` block
...
LL | extern "C" fn fe4();
- | --------------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn fe4();
+ | ^^
error: functions in `extern` blocks cannot have qualifiers
--> $DIR/fn-header-semantic-fail.rs:55:42
| ------ in this `extern` block
...
LL | const async unsafe extern "C" fn fe5();
- | ---------------------------------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn fe5();
+ | ^^
error: functions cannot be both `const` and `async`
--> $DIR/fn-header-semantic-fail.rs:55:9
LL | extern {
| ------ in this `extern` block
LL | const fn foo();
- | ---------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn foo();
+ | ^^
error: functions in `extern` blocks cannot have qualifiers
--> $DIR/no-const-fn-in-extern-block.rs:4:21
| ------ in this `extern` block
...
LL | const unsafe fn bar();
- | ----------------^^^
- | |
- | help: remove the qualifiers: `fn`
+ | ^^^
+ |
+help: remove the qualifiers
+ |
+LL | fn bar();
+ | ^^
error: aborting due to 2 previous errors