fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: incorrect function inside `extern` block 2 --> $DIR/issue-95829.rs:4:14 3 | 4LL | extern { 5 | ------ `extern` blocks define existing foreign functions and functions inside of them cannot have a body 6LL | async fn L() { 7 | ______________^___- 8 | | | 9 | | cannot have a body 10LL | | 11LL | | async fn M() {} 12LL | | } 13 | |_____- help: remove the invalid body: `;` 14 | 15 = help: you might have meant to write a function accessible through FFI, which can be done by writing `extern fn` outside of the `extern` block 16 = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html 17 18error: functions in `extern` blocks cannot have qualifiers 19 --> $DIR/issue-95829.rs:4:14 20 | 21LL | extern { 22 | ------ in this `extern` block 23LL | async fn L() { 24 | ^ 25 | 26help: remove the qualifiers 27 | 28LL | fn L() { 29 | ~~ 30 31error: aborting due to 2 previous errors 32