2022-07-02 17:53:16 +00:00
|
|
|
error: free function without a body
|
2024-10-31 10:39:45 +00:00
|
|
|
--> $DIR/not-in-block.rs:4:1
|
2022-07-02 17:53:16 +00:00
|
|
|
|
|
|
|
|
LL | extern fn none_fn(x: bool) -> i32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: provide a definition for the function
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - extern fn none_fn(x: bool) -> i32;
|
|
|
|
LL + extern fn none_fn(x: bool) -> i32 { <body> }
|
|
|
|
|
|
2022-07-02 17:53:16 +00:00
|
|
|
help: if you meant to declare an externally defined function, use an `extern` block
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | extern { fn none_fn(x: bool) -> i32; }
|
2025-02-13 03:21:25 +00:00
|
|
|
| + +
|
2022-07-02 17:53:16 +00:00
|
|
|
|
|
|
|
error: free function without a body
|
2024-10-31 10:39:45 +00:00
|
|
|
--> $DIR/not-in-block.rs:6:1
|
2022-07-02 17:53:16 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" fn c_fn(x: bool) -> i32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: provide a definition for the function
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - extern "C" fn c_fn(x: bool) -> i32;
|
|
|
|
LL + extern "C" fn c_fn(x: bool) -> i32 { <body> }
|
|
|
|
|
|
2022-07-02 17:53:16 +00:00
|
|
|
help: if you meant to declare an externally defined function, use an `extern` block
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | extern "C" { fn c_fn(x: bool) -> i32; }
|
2025-02-13 03:21:25 +00:00
|
|
|
| + +
|
2022-07-02 17:53:16 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|