2020-01-29 17:18:54 -06:00
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
|
|
--> $DIR/no-const-fn-in-extern-block.rs:2:14
|
2019-09-29 18:22:18 -05:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2019-09-29 18:22:18 -05:00
|
|
|
LL | const fn foo();
|
2020-11-15 15:34:51 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: remove the qualifiers
|
|
|
|
|
|
|
|
|
LL | fn foo();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~
|
2019-09-29 18:22:18 -05:00
|
|
|
|
2020-01-29 17:18:54 -06:00
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
|
|
--> $DIR/no-const-fn-in-extern-block.rs:4:21
|
2019-09-29 18:22:18 -05:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" {
|
|
|
|
| ---------- in this `extern` block
|
2020-01-29 17:18:54 -06:00
|
|
|
...
|
2019-09-29 18:22:18 -05:00
|
|
|
LL | const unsafe fn bar();
|
2020-11-15 15:34:51 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: remove the qualifiers
|
|
|
|
|
|
|
|
|
LL | fn bar();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~
|
2019-09-29 18:22:18 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|