mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
19 lines
367 B
Plaintext
19 lines
367 B
Plaintext
error: missing `fn` or `struct` for function or struct definition
|
|
--> $DIR/extern-no-fn.rs:2:5
|
|
|
|
|
LL | extern "C" {
|
|
| - while parsing this item list starting here
|
|
LL | f();
|
|
| ^
|
|
...
|
|
LL | }
|
|
| - the item list ends here
|
|
|
|
|
help: if you meant to call a macro, try
|
|
|
|
|
LL | f!();
|
|
| ~~
|
|
|
|
error: aborting due to 1 previous error
|
|
|