fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected `{`, found keyword `unsafe` 2 --> $DIR/unsafe-foreign-mod-2.rs:1:12 3 | 4LL | extern "C" unsafe { 5 | ^^^^^^ expected `{` 6 7error: extern block cannot be declared unsafe 8 --> $DIR/unsafe-foreign-mod-2.rs:1:12 9 | 10LL | extern "C" unsafe { 11 | ^^^^^^ 12 13error: functions in `extern` blocks cannot have qualifiers 14 --> $DIR/unsafe-foreign-mod-2.rs:4:15 15 | 16LL | extern "C" unsafe { 17 | ----------------- in this `extern` block 18... 19LL | unsafe fn foo(); 20 | ^^^ 21 | 22help: remove the qualifiers 23 | 24LL | fn foo(); 25 | ~~ 26 27error: aborting due to 3 previous errors 28