mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 04:23:37 +00:00
20 lines
706 B
Plaintext
20 lines
706 B
Plaintext
error: extern block cannot be declared unsafe
|
|
--> $DIR/feature-gate-unsafe-extern-blocks.rs:1:1
|
|
|
|
|
LL | unsafe extern "C" {
|
|
| ^^^^^^
|
|
|
|
error[E0658]: `unsafe extern {}` blocks and `safe` keyword are experimental
|
|
--> $DIR/feature-gate-unsafe-extern-blocks.rs:9:5
|
|
|
|
|
LL | safe fn foo();
|
|
| ^^^^
|
|
|
|
|
= note: see issue #123743 <https://github.com/rust-lang/rust/issues/123743> for more information
|
|
= help: add `#![feature(unsafe_extern_blocks)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|