fork/rust

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

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

master
1016 B32 linesraw
1error: free function without a body
2  --> $DIR/not-in-block.rs:3:1
3   |
4LL | extern fn none_fn(x: bool) -> i32;
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7help: provide a definition for the function
8   |
9LL | extern fn none_fn(x: bool) -> i32 { <body> }
10   |                                   ~~~~~~~~~~
11help: if you meant to declare an externally defined function, use an `extern` block
12   |
13LL | extern { fn none_fn(x: bool) -> i32; }
14   | ~~~~~~~~                             +
15
16error: free function without a body
17  --> $DIR/not-in-block.rs:5:1
18   |
19LL | extern "C" fn c_fn(x: bool) -> i32;
20   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21   |
22help: provide a definition for the function
23   |
24LL | extern "C" fn c_fn(x: bool) -> i32 { <body> }
25   |                                    ~~~~~~~~~~
26help: if you meant to declare an externally defined function, use an `extern` block
27   |
28LL | extern "C" { fn c_fn(x: bool) -> i32; }
29   | ~~~~~~~~~~~~                          +
30
31error: aborting due to 2 previous errors
32