mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
24 lines
582 B
Plaintext
24 lines
582 B
Plaintext
error: expected `{`, found keyword `unsafe`
|
|
--> $DIR/unsafe-foreign-mod-2.rs:1:12
|
|
|
|
|
LL | extern "C" unsafe {
|
|
| ^^^^^^ expected `{`
|
|
|
|
error: extern block cannot be declared unsafe
|
|
--> $DIR/unsafe-foreign-mod-2.rs:1:12
|
|
|
|
|
LL | extern "C" unsafe {
|
|
| ^^^^^^
|
|
|
|
error: functions in `extern` blocks cannot have qualifiers
|
|
--> $DIR/unsafe-foreign-mod-2.rs:4:5
|
|
|
|
|
LL | extern "C" unsafe {
|
|
| ----------------- in this `extern` block
|
|
...
|
|
LL | unsafe fn foo();
|
|
| ^^^^^^ help: remove this qualifier
|
|
|
|
error: aborting due to 3 previous errors
|
|
|