2024-06-26 08:44:59 +08:00
|
|
|
error: items in unadorned `extern` blocks cannot have safety qualifiers
|
2024-07-18 11:54:04 -03:00
|
|
|
--> $DIR/unsafe-on-extern-block-issue-126756.rs:6:5
|
2024-06-26 08:44:59 +08:00
|
|
|
|
|
|
|
|
LL | unsafe fn foo();
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add unsafe to this `extern` block
|
|
|
|
|
|
|
|
|
LL | unsafe extern "C" {
|
|
|
|
| ++++++
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|