1 error: free function without a body
2 --> $DIR/not-in-block.rs:3:1
4 LL | extern fn none_fn(x: bool) -> i32;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 help: provide a definition for the function
9 LL | extern fn none_fn(x: bool) -> i32 { <body> }
11 help: if you meant to declare an externally defined function, use an `extern` block
13 LL | extern { fn none_fn(x: bool) -> i32; }
16 error: free function without a body
17 --> $DIR/not-in-block.rs:5:1
19 LL | extern "C" fn c_fn(x: bool) -> i32;
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 help: provide a definition for the function
24 LL | extern "C" fn c_fn(x: bool) -> i32 { <body> }
26 help: if you meant to declare an externally defined function, use an `extern` block
28 LL | extern "C" { fn c_fn(x: bool) -> i32; }
31 error: aborting due to 2 previous errors