2020-01-30 13:02:06 +01:00
|
|
|
error: functions cannot be both `const` and `async`
|
2021-05-07 18:56:16 +02:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:12:5
|
2020-01-30 13:02:06 +01:00
|
|
|
|
|
2022-02-14 16:10:22 +00:00
|
|
|
LL | const async unsafe extern "C" fn ff5() {}
|
2020-03-06 10:55:21 -08:00
|
|
|
| ^^^^^-^^^^^------------------------------
|
2020-01-30 13:02:06 +01:00
|
|
|
| | |
|
|
|
|
| | `async` because of this
|
|
|
|
| `const` because of this
|
|
|
|
|
2020-02-11 08:19:21 +01:00
|
|
|
error[E0379]: functions in traits cannot be declared const
|
2022-11-24 17:58:32 +01:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:18:9
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
|
|
|
LL | const fn ft3();
|
2024-01-02 00:57:30 +01:00
|
|
|
| ^^^^^-
|
|
|
|
| |
|
|
|
|
| functions in traits cannot be const
|
|
|
|
| help: remove the `const`
|
2020-01-30 00:18:54 +01:00
|
|
|
|
2020-02-11 08:19:21 +01:00
|
|
|
error[E0379]: functions in traits cannot be declared const
|
2022-11-24 17:58:32 +01:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:20:9
|
2020-01-30 08:31:31 +01:00
|
|
|
|
|
|
|
|
LL | const async unsafe extern "C" fn ft5();
|
2024-01-02 00:57:30 +01:00
|
|
|
| ^^^^^-
|
|
|
|
| |
|
|
|
|
| functions in traits cannot be const
|
|
|
|
| help: remove the `const`
|
2020-01-30 08:31:31 +01:00
|
|
|
|
2020-01-30 13:02:06 +01:00
|
|
|
error: functions cannot be both `const` and `async`
|
2022-11-24 17:58:32 +01:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:20:9
|
2020-01-30 13:02:06 +01:00
|
|
|
|
|
|
|
|
LL | const async unsafe extern "C" fn ft5();
|
2020-03-06 10:55:21 -08:00
|
|
|
| ^^^^^-^^^^^----------------------------
|
2020-01-30 13:02:06 +01:00
|
|
|
| | |
|
|
|
|
| | `async` because of this
|
|
|
|
| `const` because of this
|
|
|
|
|
2024-01-02 00:26:50 +01:00
|
|
|
error[E0379]: functions in trait impls cannot be declared const
|
2023-09-13 16:04:42 +00:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:29:9
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
|
|
|
LL | const fn ft3() {}
|
2024-01-02 00:57:30 +01:00
|
|
|
| ^^^^^-
|
|
|
|
| |
|
|
|
|
| functions in trait impls cannot be const
|
|
|
|
| help: remove the `const`
|
2020-01-30 00:18:54 +01:00
|
|
|
|
2024-01-02 00:26:50 +01:00
|
|
|
error[E0379]: functions in trait impls cannot be declared const
|
2023-09-13 16:04:42 +00:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:31:9
|
2020-01-30 08:31:31 +01:00
|
|
|
|
|
|
|
|
LL | const async unsafe extern "C" fn ft5() {}
|
2024-01-02 00:57:30 +01:00
|
|
|
| ^^^^^-
|
|
|
|
| |
|
|
|
|
| functions in trait impls cannot be const
|
|
|
|
| help: remove the `const`
|
2020-01-30 08:31:31 +01:00
|
|
|
|
2020-01-30 13:02:06 +01:00
|
|
|
error: functions cannot be both `const` and `async`
|
2023-09-13 16:04:42 +00:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:31:9
|
2020-01-30 13:02:06 +01:00
|
|
|
|
|
|
|
|
LL | const async unsafe extern "C" fn ft5() {}
|
2020-03-06 10:55:21 -08:00
|
|
|
| ^^^^^-^^^^^------------------------------
|
2020-01-30 13:02:06 +01:00
|
|
|
| | |
|
|
|
|
| | `async` because of this
|
|
|
|
| `const` because of this
|
|
|
|
|
|
|
|
error: functions cannot be both `const` and `async`
|
2023-09-13 16:04:42 +00:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:41:9
|
2020-01-30 13:02:06 +01:00
|
|
|
|
|
|
|
|
LL | const async unsafe extern "C" fn fi5() {}
|
2020-03-06 10:55:21 -08:00
|
|
|
| ^^^^^-^^^^^------------------------------
|
2020-01-30 13:02:06 +01:00
|
|
|
| | |
|
|
|
|
| | `async` because of this
|
|
|
|
| `const` because of this
|
|
|
|
|
2020-01-30 00:18:54 +01:00
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
2024-04-03 02:43:54 +02:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:46:9
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2020-01-30 00:18:54 +01:00
|
|
|
LL | async fn fe1();
|
2024-04-03 02:43:54 +02:00
|
|
|
| ^^^^^ help: remove this qualifier
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
2024-04-03 02:43:54 +02:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:47:9
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2020-01-30 00:18:54 +01:00
|
|
|
LL | async fn fe1();
|
|
|
|
LL | unsafe fn fe2();
|
2024-04-03 02:43:54 +02:00
|
|
|
| ^^^^^^ help: remove this qualifier
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
2024-04-03 02:43:54 +02:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:48:9
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2020-01-30 00:18:54 +01:00
|
|
|
...
|
|
|
|
LL | const fn fe3();
|
2024-04-03 02:43:54 +02:00
|
|
|
| ^^^^^ help: remove this qualifier
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
2024-04-03 02:43:54 +02:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:49:9
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2020-01-30 00:18:54 +01:00
|
|
|
...
|
|
|
|
LL | extern "C" fn fe4();
|
2024-04-03 02:43:54 +02:00
|
|
|
| ^^^^^^^^^^ help: remove this qualifier
|
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
|
|
--> $DIR/fn-header-semantic-fail.rs:50:21
|
2020-11-15 15:34:51 -06:00
|
|
|
|
|
2024-04-03 02:43:54 +02:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
|
|
|
...
|
|
|
|
LL | const async unsafe extern "C" fn fe5();
|
|
|
|
| ^^^^^^ help: remove this qualifier
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
2024-04-03 02:43:54 +02:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:50:15
|
2020-01-30 00:18:54 +01:00
|
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2020-01-30 00:18:54 +01:00
|
|
|
...
|
2020-01-30 08:31:31 +01:00
|
|
|
LL | const async unsafe extern "C" fn fe5();
|
2024-04-03 02:43:54 +02:00
|
|
|
| ^^^^^ help: remove this qualifier
|
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
|
|
--> $DIR/fn-header-semantic-fail.rs:50:9
|
2020-11-15 15:34:51 -06:00
|
|
|
|
|
2024-04-03 02:43:54 +02:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
|
|
|
...
|
|
|
|
LL | const async unsafe extern "C" fn fe5();
|
|
|
|
| ^^^^^ help: remove this qualifier
|
|
|
|
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
|
|
--> $DIR/fn-header-semantic-fail.rs:50:28
|
2020-11-15 15:34:51 -06:00
|
|
|
|
|
2024-04-03 02:43:54 +02:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
|
|
|
...
|
|
|
|
LL | const async unsafe extern "C" fn fe5();
|
|
|
|
| ^^^^^^^^^^ help: remove this qualifier
|
2020-01-30 00:18:54 +01:00
|
|
|
|
2020-01-30 13:02:06 +01:00
|
|
|
error: functions cannot be both `const` and `async`
|
2023-09-13 16:04:42 +00:00
|
|
|
--> $DIR/fn-header-semantic-fail.rs:50:9
|
2020-01-30 13:02:06 +01:00
|
|
|
|
|
|
|
|
LL | const async unsafe extern "C" fn fe5();
|
2020-03-06 10:55:21 -08:00
|
|
|
| ^^^^^-^^^^^----------------------------
|
2020-01-30 13:02:06 +01:00
|
|
|
| | |
|
|
|
|
| | `async` because of this
|
|
|
|
| `const` because of this
|
|
|
|
|
2024-04-03 02:43:54 +02:00
|
|
|
error: aborting due to 17 previous errors
|
2020-01-30 00:18:54 +01:00
|
|
|
|
2023-09-13 16:04:42 +00:00
|
|
|
For more information about this error, try `rustc --explain E0379`.
|