fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
718 B21 linesraw
1error: incorrect function inside `extern` block
2  --> $DIR/issue-91370-foreign-fn-block-impl.rs:5:8
3   |
4LL |   extern {
5   |   ------ `extern` blocks define existing foreign functions and functions inside of them cannot have a body
6LL |
7LL |       fn f() {
8   |  ________^___-
9   | |        |
10   | |        cannot have a body
11LL | |
12LL | |
13LL | |         impl Copy for u8 {}
14LL | |     }
15   | |_____- help: remove the invalid body: `;`
16   |
17   = 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
18   = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
19
20error: aborting due to previous error
21