mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 21:24:12 +00:00
29 lines
780 B
Plaintext
29 lines
780 B
Plaintext
error: functions in `extern` blocks cannot have qualifiers
|
|
--> $DIR/no-const-fn-in-extern-block.rs:2:5
|
|
|
|
|
LL | extern "C" {
|
|
| ---------- in this `extern` block
|
|
LL | const fn foo();
|
|
| ^^^^^ help: remove this qualifier
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
--> $DIR/no-const-fn-in-extern-block.rs:4:11
|
|
|
|
|
LL | extern "C" {
|
|
| ---------- in this `extern` block
|
|
...
|
|
LL | const unsafe fn bar();
|
|
| ^^^^^^ help: remove this qualifier
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
--> $DIR/no-const-fn-in-extern-block.rs:4:5
|
|
|
|
|
LL | extern "C" {
|
|
| ---------- in this `extern` block
|
|
...
|
|
LL | const unsafe fn bar();
|
|
| ^^^^^ help: remove this qualifier
|
|
|
|
error: aborting due to 3 previous errors
|
|
|