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