Files
rust/tests/ui/rust-2024/unsafe-extern-blocks/unsafe-on-extern-block-issue-126756.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
334 B
Plaintext
Raw Normal View History

2024-10-11 11:24:14 -04:00
error: items in `extern` blocks without an `unsafe` qualifier cannot have safety qualifiers
--> $DIR/unsafe-on-extern-block-issue-126756.rs:6:5
|
LL | unsafe fn foo();
| ^^^^^^^^^^^^^^^^
|
2024-10-11 11:24:14 -04:00
help: add `unsafe` to this `extern` block
|
LL | unsafe extern "C" {
| ++++++
error: aborting due to 1 previous error